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
Explain pointer. What are function pointers in C?
Give the rules for variable declaration?
When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd
The file stdio.h, what does it contain?
What is the sizeof () a pointer?
Can a void pointer point to a function?
Explain about block scope in c?
Explain what is wrong in this statement?
What are unions in c?
How many bytes is a struct in c?
Do you know the difference between malloc() and calloc() function?
Are there any problems with performing mathematical operations on different variable types?
What is structure in c definition?
GIven a sequence of characters. How will you convert the lower case characters to upper case characters. ( Try using bit vector - sol given in the C lib -> typec.h)
Is anything faster than c?