PRF192_-_SP_2024_-_RE_1724.webp
true_love

PRF192_-_SP_2024_-_RE_1724.webp

Qmark: 1
Total Marks: 50
Vol: 8
Font: Microsoft Sans Serif
Size: 10
Time Left:44:55
Multiple Choices
(Choose 1 answer)
int i=1;
What is the output when the sample code below is executed?
while(i<=10)
if(i%2 == 1)
printf("%d ",i++);
else
printf("%d ",i--);
A. 1
Β. 1 3 5 7 9
C. 1 2 4 6 8 10
D. 1212... (infinite loop)
E. compiler error

Thông tin

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

Image metadata

Filename
PRF192_-_SP_2024_-_RE_1724.webp
File size
177.6 KB
Dimensions
1834px x 882px

Share this media

Back
Bên trên Bottom