What are Storage Classes in C ?
Answer Posted / laxmikant
C supports 4 types of storage class. They are given
hereundr:-
1> Extern
2> static
3> Register
4> Auto
By default a variable defined inside a block is a auto
variable.It has block level scope.Regsiter storage class
indicates that the variable is stored in the CPU rather
than Memory. So the opeartion is faster because accessing
register is faster then memory.Extern indicates that the
effect of the variable is realised in every object modules.
And finally static .If it is defined inside the
function ,then it's retian its value during different
function call.And it's life is through out the program.And
it's initilized only once.
| Is This Answer Correct ? | 27 Yes | 9 No |
Post New Answer View All Answers
How arrays can be passed to a user defined function
What is a lookup table in c?
how to make a scientific calculater ?
Explain how are portions of a program disabled in demo versions?
show how link list can be used to repersent the following polynomial i) 5x+2
What language is windows 1.0 written?
What are the rules for identifiers in c?
What is the difference between a function and a method in c?
What is clrscr in c?
How does placing some code lines between the comment symbol help in debugging the code?
What is the g value paradox?
What is signed and unsigned?
What are loops in c?
how to count no of words,characters,lines in a paragraph.
what type of questions arrive in interview over c programming?