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 const pointer and const reference?

588


Is map ordered c++?

588


What is a dynamic binding in c++?

524


what kind of projects are suitable for c and c++

618


I want to write a C++ language program that: 1. Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. The program should work for squares of all side sizes between 1 and 20.

2278






What is the use of volatile variable?

593


In which header file does one find isalpha() a) conio.h b) stdio.h c) ctype.h

672


What are the five basic elements of a c++ program?

573


What are guid?

681


What is a base class?

597


What are arithmetic operators?

531


Why ctype h is used in c++?

519


Why c++ is so important?

602


Can we overload operator in c++?

544


Why is c++ called oops?

550