Storage class defines __________________.
Storage class defines
the scope and performance.
Storage class of variables includes the scope, visibility and life-time which help to trace the existence of a particular variable during the run time of a program. There exist four types of storage class in C: auto, register, static and extern.
1) Auto storage class:-Auto is default storage class for all local variables.
2)Register storage class:-Register storage class tells the C compiler to store a variable in register instead of memory.
3)Static storage class:-We use static keyword to define static variables and functions. It instructs C compiler to store a static variable in memory till the end of program. Rather than creating and destroying a variable on each function call.
4) Extern storage class:-We use extern (external) storage class to define reference to a global variable or function defined in some other C program. The extern modifier declares a link to its original variable or function declaration.