Vidyalelo
C++ Programming · Q42

Control Flow Statements in C++

Programming · C++ Programming · question 42

Q42

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

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

Answer: Option A

Solution

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