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.