PRF192_-_SP_2025_-_Block_5_-_1_3841.webp
T

PRF192_-_SP_2025_-_Block_5_-_1_3841.webp

Kizspy Question: 11
(Choose 1 answer)
FUSTER, LOW LOM
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.

Thông tin

Category
PRF192
Thêm bởi
thanhtam76
Ngày thêm
Lượt xem
1,096
Lượt bình luận
7
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom