Vidyalelo
C++ Programming · Q46

Control Flow Statements in C++

Programming · C++ Programming · question 46

Q46

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

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

Answer: Option B

Solution

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