A

Admin • 36.96K Points
Coach

Q. What is the output of the following code snippet? int x = 10; int y = 20; cout << (x == y);

  • (A) 0
  • (B) 1
  • (C) 10
  • (D) 20
  • Correct Answer - Option(A)
  • Views: 20
  • Filed under category C++

Explanation by: Admin
The equality operator (==) returns false (0) if the operands are not equal.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics