Vidyalelo
C++ Programming · Q16

Control Flow Statements in C++

Programming · C++ Programming · question 16

Q16

What is the output of the following code: int x = 10; if (x == 10) cout << "x is 10"; else cout << "x is not 10"; in C++?

A.
No output
B.
Compilation error
C.
x is 10
Answer
D.
x is not 10

Answer: Option C

Solution

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