Vidyalelo
C++ Programming · Q37

Control Flow Statements in C++

Programming · C++ Programming · question 37

Q37

What is the output of the following code: int i = 0; do cout << i << " "; i++; while (i < 3); in C++?

A.
0 1 2 3
B.
0 1 2
Answer
C.
Compilation error
D.
1 2 3

Answer: Option B

Solution

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