1.

What is the effect of the following C code?for(int i=1; i≤5; i=i+½)printf(“%d,”,i);

A. It prints 1, 1.5, 2, 2.5, 3, 3.5, 4, 4.5, 5, and stops
B. It prints 1, 2, 3, 4, 5, and stops
C. It prints 1, 2, 3, 4, 5, and repeats forever
D. It prints 1, 1, 1, 1, 1, and repeats forever
Answer» E.


Discussion

No Comment Found