What are Storage Classes in C ?
Answer Posted / shashi sourabh kant
There are four type of storage classes in C. These are used
to store variables. These are Extern, Static, Register and
Auto. Auto is the default class assigned to any variable.
eg. if we define int x=10; then it means auto int x=10
register and static differ in only one grounds that
register is there in the cpu and static in the main memory.
extern is global and can be accessed by any program and
anywhere.
| Is This Answer Correct ? | 704 Yes | 59 No |
Post New Answer View All Answers
Explain how do you use a pointer to a function?
What is n in c?
What is difference between %d and %i in c?
`write a program to display the recomended action depends on a color of trafic light using nested if statments
What is the difference between fread and fwrite function?
Is it possible to have a function as a parameter in another function?
Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?
Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.
What is a static function in c?
What is nested structure in c?
What is structure data type in c?
#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }
What is the purpose of ftell?
What is the use of putchar function?
What is the scope of an external variable in c?