Home »
MCQs »
C++ MCQs
Which of the following is the correct syntax of the 'do-while' loop?
97. Which of the following is the correct syntax of the "do-while" loop?
- do{ //Body of the loop }while(condition);
- dowhile(condition){ //Body of the loop };
- do while(condition){ //Body of the loop };
- do{ //Body of the loop }while(condition)
Answer: A) do{ //Body of the loop }while(condition);
Explanation:
The 1st option is correct.