Vidyalelo
C++ Programming · Q20

Control Flow Statements in C++

Programming · C++ Programming · question 20

Q20

What will be the output of the following code: for (int i = 0; i < 5; ++i) if (i == 2) continue; cout << i << " "; in C++?

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

Answer: Option B

Solution

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