A static variable is one:
A. Which cannot be initialized
B. Which is initialized once at the commencement of execution and cannot be changed at runtime
C. Which retains its value throughout the life of the program
D. Which is the same as an automatic variable but is placed at the head of a program
Answer:C
A static variable is one:
A. Which cannot be initialized B. Which is initialized once at the commencement of execution and cannot be changed at runtime C. Which retains its value throughout the life of the program D. Which is the same as an automatic variable but is placed at the head of a program