What are Storage Classes in C ?
Answer Posted / sagar kolte & shakti panch
storage class is nothing but diffrent location laocation in
memroy::::
Storage class tells us:
1) Where the variable is stored.
2) Initial value of the variable.
3) Scope of the variable.Scope specifies the part of the
program which a variable is accessed.
4) Life of the variable.
there are 4 class
1) register -> (all the cpu reg)
2) auto -> scope is local to function perticular function
3) extern-> all global variables by default they are global
4) static ->Variable is stored in memory.
Default value is zero.
Scope is local to the block.
Life is,value of the variable persists between different
function calls.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
simple program of graphics and their output display
What is restrict keyword in c?
What are the header files used in c language?
Is it possible to have a function as a parameter in another function?
Can you mix old-style and new-style function syntax?
Can math operations be performed on a void pointer?
List a few unconditional control statement in c.
What are qualifiers?
What is the difference between if else and switchstatement
Explain the use of 'auto' keyword in c programming?
Explain union.
What is wrong with this initialization?
What kind of structure is a house?
find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2
Explain how can I prevent another program from modifying part of a file that I am modifying?