Correct Answer : D
Inside main
is the for
loop.
Initialization condition : i = 10
Terminating condition : i <= 5
Increment value : -1
(i.e. i--
)
Number of iterations : 6
(i = 10, 9, 8, 7, 6, 5
)
i
starts at 10
and for every iteration (cycle), value of i
is decremented by 1
and it is printed. Values are printed till i = 5
. Loop terminates when i = 4
is reached. So values from 10
to 5
are printed.