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

  • (A) 1
  • (B) 0
  • (C) 10
  • (D) 20
πŸ’¬ Discuss
βœ… Correct Answer: (B) 0
Explanation: The expression (x == y) evaluates to false, which is represented as 0 in C++.
Explanation by: Vinay
The expression (x == y) evaluates to false, which is represented as 0 in C++.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
115
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Vinay
Publisher
πŸ“ˆ
91%
Success Rate