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

Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?

619


If dog is a friend of boy, is boy a friend of dog?

583


How can you create a virtual copy constructor?

593


In the derived class, which data member of the base class are visible?

654


What is type of 'this' pointer?

605






Difference between struct and class in terms of access modifier.

705


What is size of string in c++?

570


What is pointer to member?

607


What is prototype in c++ with example?

571


What is c++ used for in games?

617


What's the best free c++ profiler for windows?

635


What is a binary file? List the merits and demerits of the binary file usagein C++.

743


Can I learn c++ without learning c?

570


What is the insertion operator and what does it do?

574


Explain storage qualifiers in c++.

629