Important MCQ

int i=10; do{cout<<i;}while(i<5); prints

Q.int i=10; do{cout<
A) 5
B) nothing
C) 10
D) 10 9 8 7 6
Correct Answer:
Option C
Detailed Explanation:
C) 10 is correct. A do-while loop executes its body before checking the condition, so it runs at least once. Its closing while(condition) is followed by a semicolon.