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: (A) 1
Explanation: The expression (x != y) evaluates to true, which is represented as 1 in C++.
Explanation by: Admin
The expression (x != y) evaluates to true, which is represented as 1 in C++.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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