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