When is memory allocated for a 'static' variable in C?
A. During compile time
B. During runtime
C. During function call
D. During program termination
Answer: Option A
A. During compile time
B. During runtime
C. During function call
D. During program termination
Answer: Option A
What is the primary purpose of the 'static' storage class?
A. Extend scope
B. Preserve value
C. Allocate memory
D. Register access
Join The Discussion