What are the different types of Storage classes?

Answer Posted / manjusinga

There are four types of storage classes.

1.Automatic: The scope is within the class that is like
local to its class

2.Extern: The scope of this is used within the class as
well as outside the class.so it is global

3.Regiter: These are mainly used for faster access of data.

4.Static: Once you declare the variable as static it will
remain constant throughout the program

Is This Answer Correct ?    48 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it possible to have a recursive inline function in c++?

769


What is the header file for setw?

814


What is input operator in c++?

787


How c functions prevents rework and therefore saves the programers time as wel as length of the code ?

860


What are c++ storage classes?

805


Explain mutable storage class specifier.

836


What is ifstream c++?

807


Is ca high or low level language?

815


Why iomanip is used in c++?

846


What is the use of 'using' declaration in c++?

859


What are the methods of exporting a function from a dll?

853


Explain object slicing in c++?

783


What is polymorphism and its type in c++?

782


What is Destructor in C++?

950


What is pure virtual function?

820