The static variables of a function ________________

The static variables of a function ________________
A. Are also automatic variables
B. Are not automatic variables
C. Are made automatic by default
D. Can be made automatic explicitly
 
Answer: b
Explanation: The static members can’t be automatic. This is because the automatic variables are created and destroyed with each call to a specific function. But the static members remain throughout the execution of program once created.
 

Tìm kiếm

Back
Top