PRF192_-_SP_2024_-_Block_5_-_RE_1958.webp
Đ

PRF192_-_SP_2024_-_Block_5_-_RE_1958.webp

}
A. 3
(Choose 1 answer)
What is the output when the sample code below is executed?
main(){
int a[5] = {1, 2, 3, 4, 5};
int i, sum = 0;
for (i = 0; i < 5; i++) {
if(i==2)
break;
sum += a[i];
}
printf("%d", sum);
B. 15
C. 12
D. 1
FUO
): 18

Thông tin

Category
PRF192
Thêm bởi
Đức Thành2
Ngày thêm
Lượt xem
1,687
Lượt bình luận
6
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRF192_-_SP_2024_-_Block_5_-_RE_1958.webp
File size
162 KB
Dimensions
1920px x 892px

Share this media

Back
Bên trên Bottom