The ____ of a variable defines the location within a program where that variable can be used.
A. storage class
B. time-dimension
C. scope
D. data type
查看答案
Storage for automatic local variables is automatically reserved (that is, created) after the program begins its execution.
As long as a function has not returned control to its calling function, all automatic variables local to the function are “alive”; that is, storage for the variables is available.
Once created, local static variables remain in existence for the life of the program.
The initialization of static variables (both local and global) is done only once, when the program is first compiled.