Differences between C# “var” and C++ “auto”
In C# var keyword works only locally inside function: var i = 10; // implicitly typed In C++ auto keyword can deduce type not only in variables, but also in functions and templates: auto i = 10; auto foo() { //deduced to be int return 5; } template<typename T, typename U> auto add(T t, U … Read more