Which one of the following describes correctly a static variable?
A. It cannot be initialized
B. It is initialized once at the commencement of execution and cannot be changed at run time
C. It retains its value during the life of the program
D. None of the above
Answer:C
Which one of the following describes correctly a static variable?
A. It cannot be initialized B. It is initialized once at the commencement of execution and cannot be changed at run time C. It retains its value during the life of the program D. None of the above