Quiz 10

What is the output?

a. i=57 and k=0
b. i=58 and k=0
c. i=58 and k=1
d. infinte loop

Answer : c

do-while is an exit controlled loop, i.e. ,Code runs atleast once whether condition is true or not.

Leave a Reply

Your email address will not be published. Required fields are marked *