Correct Answer : A
Inside main
, an integer variable n
is declared and initialized to 3
. Irrespective of the termination condition, the statements in do
are executed first. The display statement prints n
as 3
and then decrements n
. The statements in the do
-while
body (display statement and n--
) will be executed till the condition n > 0
returns false
. Thus there will be 2
more iterations printing values of n
as 2
and 1
. When n
reaches 0
, condition is violated and control goes out of do
-while
loop.