• We’ve defined variables using types either atomic types like int,
double, etc. or types from class definitions like MyClass
• However, C++ 11 allows us to leave type deduction to the compiler
• To do this, we use the auto keyword.
• Note: auto had a different meaning prior to C++ 11 and certainly in C
where is stood for automatic storage
auto x = 0; // x has type int because 0 is int
auto c = 'a'; // char
auto d = 0.5; // double