Lecture 2 - Slide 23 : 29
Deduction of types with auto

auto can be used as a type specifier in C++11

auto deduces a type from an initializer

auto is also used when the return type of a function is written after the parameters (suffix return type syntax)

auto can be used for deduction of a function's return type in C++14

auto2.cc
Sample use of auto in C++11.
auto3.cc
Same - without std:: - with using namespace std.
auto4.cc
Same - illustrates deduction of a functions return type in C++14.