int foo = 0; auto bar = foo; // the same as: int bar = foo; // type of bar is the type of the value used to initialize it