Vidyalelo
C++ Programming · Q18

Control Flow Statements in C++

Programming · C++ Programming · question 18

Q18

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

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

Answer: Option D

Solution

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