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
πŸ’¬ Discuss
βœ… Correct Answer: (A) 0
Explanation: The equality operator (==) returns false (0) if the operands are not equal.
Explanation by: Admin
The equality operator (==) returns false (0) if the operands are not equal.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
105
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Admin
Publisher
πŸ“ˆ
81%
Success Rate