πŸ“Š C++
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 greater-than operator (>) returns false (0) if the first operand is not greater than the second.

Explanation by: Praveen Singh
The greater-than operator (>) returns false (0) if the first operand is not greater than the second.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
110
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Praveen Singh
Publisher
πŸ“ˆ
80%
Success Rate