In which storage class are variables allocated memory in the data segment of the program's memory?
A. auto
B. extern
C. static
D. register
Answer: Option C
A. auto
B. extern
C. static
D. register
Answer: Option C
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