What are Storage Classes in C ?

Answer Posted / yogeshwar parashar

definition of storage class:-
WHEN WE DEFINE ANY VARIABLE IN COMPUTER IT'S REQUIRE
SOME PHYSICAL LOCATION, TWO TYPES OF LOCATION HAS COMPUTER
1)COMPUTER MEMORY
2)CPU REGISTER.
STORAGE CLASS HAS SOME FEATURES FOR EVERY VARIABLE LIKE
A)LOCATION OR VARIABLE
B)INITIAL VALUE OF THE VARIABLE, IF IT IS NOT DEFINE THEN
WE FIND BY DEFAULT VALUE OR GARBEGE VALUE.
C)SCOPE (VISIBILITY) OF THE VARIABLE.
D)LIFE OF THE VARIABLE

THERE ARE FOUR TYPES OF STORAGE CLASSES IN C PROGRAMMING.

A) AUTOMATIC STORAGE CLASS
B) REGISTER STORAGE CLASS
C) STATIC STORAGE CLASS
D) EXTERNAL STORAGE CLASS
THANK YOU...
YOGESHWAR PARASHAR

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is this loop always executing once?

605


What will be the outcome of the following conditional statement if the value of variable s is 10?

742


What is difference between function overloading and operator overloading?

643


What are pointers? What are different types of pointers?

614


Why can’t we compare structures?

798






What is a lookup table in c?

610


In a switch statement, what will happen if a break statement is omitted?

589


c language supports bitwise operations, why a) 'c' language is system oriented b) 'c' language is problem oriented c) 'c' language is middle level language d) all the above

600


write a C program: To search a file any word which starts with ?a?. If the word following this ?a? starts with a vowel.Then replace this ?a? with ?a? with ?an?. redirect with the output onto an output file.The source file and destination file are specified by the user int the command line.

2441


What is static volatile in c?

560


Why should I use standard library functions instead of writing my own?

658


Explain how do you determine whether to use a stream function or a low-level function?

610


Are the variables argc and argv are local to main?

776


Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?

564


Explain what is a static function?

620