Declaration of Automatic Objects

In C++, objects can be declared with automatic storage class using the auto or register keyword. If no storage-class keyword is used for a local object (an object declared inside a function), auto is assumed. C++ initializes and declares these objects differently than objects declared with static storage classes.

See Also

Reference

Declaration Statements (C++)