Explain Storage class in C and types
In C not only all variables have a data type, they also have storage class that provides information about their location and visibility.
The storage class decides the portion of the program within which the variables are recognized.
The following storage classes are most relevant to functions :
Automatic variables
External variables
Static variables
Register variables
Scope : It determines over what region of the program a variable
is actually available for use (‘active’).
Longevity : It refers to the period during which a variable retains a
given value during execution of a program (alive).
Visibility : It refers to the accessibility of a variable fro the
memory.
Labels: C