What is the default value of an uninitialized 'static' variable in C?
A. Zero
B. Undefined
C. Garbage value
D. one
Answer: Option A
Solution (By Examveda Team)
The default value of an uninitialized 'static' variable in C is zero. Unlike automatic variables (which have an undefined value), static variables are automatically initialized to zero if no explicit initialization is provided.Join The Discussion
Comments (1)
Related Questions on Storage Class
What is the primary purpose of the 'static' storage class?
A. Extend scope
B. Preserve value
C. Allocate memory
D. Register access

answer not c, its A bcz uninitialized static variable store 0 not garbage value