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

What is switch case in c++ syntax?

631


A mXn matrix is given and rows and column are sorted as shown below.Write a function that search a desired entered no in the matrix .with minimum complexity 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

3246


Why do we need c++?

599


Is it possible for a member function to use delete this?

576


what are the events occur in intr activated on interrupt vector table

1185






What is the meaning of c++?

546


Describe exception handling concept with an example?

565


Who calls main function?

589


What are static variables?

621


Can I learn c++ as my first language?

613


What is a multiset c++?

555


How can an improvement in the quality of software be done by try/catch/throw?

596


Explain what is polymorphism in c++?

631


What size is allocated to the union variable?

596


Evaluate !(1&&1||1&&0) a) Error b) False c) True

707