Example & Tutorial understanding programming in easy ways.

What is storage class specifier in C++?

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.

registor:
-Using this we can direct store variable in CPU registor.

Static:
-Shareable memory for every instance of object.

Extern:
-Used to define external(global) variable.




Read More →