Kizspy | Question: 11
(Choose 1 answer)
What is the primary difference between global variables and local variables in C?
A. Global variables have a wider scope and can be accessed from any function, while local variables are
limited to their function's scope.
B. Global variables are initialized automatically to zero, while local variables require explicit initialization.
C. Local variables cannot be modified after initialization, while global variables allow modification at any time.
D. Global variables can only be used within the main function, while local variables can be used throughout
the program.