Storage Classes in C: Auto, Extern, Static, Register
Storage classes in C are used to determine the lifetime, visibility,
memory location, and initial value of a variable. There are four
types of storage classes in C
o Automatic
o External
o Static
o Register
Thus a storage class is used to represent the information about a
variable.
A storage class in C is used to describe the following things:
The variable scope.
The location where the variable will be stored.
The initialized value of a variable.
A lifetime of a variable.
Who can access a variable?
Summary table of storage classes