Vidyalelo
C++ Programming · Q35

Control Flow Statements in C++

Programming · C++ Programming · question 35

Q35

What will be the output of the following code: int i = 5; if (i != 5) cout << "Not equal"; else cout << "Equal"; in C++?

A.
Compilation error
B.
5
C.
Not equal
D.
Equal
Answer

Answer: Option D

Solution

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