Which of the following is not a storage class specifier in C?
a) auto
b) register
c) static
d) int
Answer:
d) int
Explanation:
int
is a data type in C, not a storage class specifier. Storage class specifiers like auto
, register
, and static
define the lifetime, visibility, and storage location of variables. For example, auto
is the default storage class for local variables, register
requests storage in a CPU register, and static
preserves the variable’s value across function calls.
Understanding storage classes is crucial for controlling the scope, lifetime, and storage efficiency of variables in C programming.