PRF192_-_FA_2024_-_FE_2937.webp
M

PRF192_-_FA_2024_-_FE_2937.webp

Kizspy | Question: 37
(Choose 1 answer)
int a[] = {1,2,3,4};
What is the results will be displayed on the screen after executing the following code:
int i=0, s=0;for (; a[i]; ++i)
s += a[i];
printf("%d", s);
A. 10
B. Compiler error
C. Runtime error
D. Garbage value

Thông tin

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

Share this media

Back
Bên trên Bottom