ExamVeda
Login
Home
This question belongs to C Program Storage Class
Storage Class
?

What is the default value of an uninitialized 'static' variable in C?

Answer & Solution
Correct Answer: Option A
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.
Examveda
Question posted by Examveda
Community

Join the Discussion

1 Comment
Ganesh Paindla's
Ganesh Paindla's 3 years ago
answer not c, its A bcz uninitialized static variable store 0 not garbage value