Storage classes in C
There are four storage classes in C:
a. Automatic storage class: The features of variables are as follows
-Storage: Memory
-Default initial value: Garbage value
-Scope: Local to the block in which defined
-Life: till the control *** within the block in which defined.
b. Register storage class: The features of variables are as follows
-Storage: CPU registers
-Default initial value: Garbage value
-Scope: Local to the block in which defined
-Life: till the control *** within the block in which defined
c. Static storage class: The features of variables are as follows
-Storage: Memory
-Default initial value: Zero
-Scope: Local to the block in which defined
-Life: value of variable persists between different function calls.
d. External storage class: The features of variables here are as follows
-Storage: Memory
-Default initial value: Zero
-Scope: global
-Life: As long as program ***** does not come to an end.