C++ Language/Type/Shortcuts/FromInitialization

The compiler can infer a variable's type from its initialization data. So defining  is the same as defining   (because   is a   literal).

Additional information about inferring type from initialization data (includes interactive examples)