C++11 ‘auto’ Tutorial and Examples

In this article we will learn how to use auto variable in C++11. auto is introduces in C++11. With auto we can declare a variable without specifying its type. Its type will be deduced by the data to which its initializing i.e. // Storing a int inside a auto variable auto var_1 = 5; // …

C++11 ‘auto’ Tutorial and Examples Read More ยป