Vidyalelo
C++ Programming · Q31

Control Flow Statements in C++

Programming · C++ Programming · question 31

Q31

What is the correct syntax for the 'do-while' loop in C++?

A.
while { condition } { statement; }
B.
do { condition; } while (statement);
C.
do { statement; } while (condition);
Answer
D.
do (condition) { statement; } while;

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board