Vidyalelo
C++ Programming · Q40

Control Flow Statements in C++

Programming · C++ Programming · question 40

Q40

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

A.
00 11 22 33
B.
00 10 20 01 11
C.
Compilation error
D.
00 01 10 11
Answer

Answer: Option D

Solution

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