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
what are the different storage classes in c?
Write a program for Overriding.
What is the collection of communication lines and routers called?
What is the use of ?
code for quick sort?
a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above
What is the difference between array and pointer in c?
What are lookup tables in c?
What are the salient features of c languages?
A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream
What is infinite loop?
What are the two forms of #include directive?
Describe the order of precedence with regards to operators in C.
Write a program that accept anumber in words
Why is c platform dependent?