storage class specifier in C++ by R4R Team

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.




Leave a Comment:
Search
Categories
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!