What is storage class?
Basically, storage class defines the scope and life-time of the variable or function within the C++ program.
How many type of storage class we have?
There are 5 type:
-auto
-register
-static
-extern
-mutable
Auto storage class:
-It is automatically decide the data type of the variable.
register:
-Using this we can direct store variable in CPU register.
Static:
-Shareable memory for every instance of object.
Extern:
-Used to define external(global) variable.