Q. What is the output of the following code snippet? int x = 10; int y = 20; cout << (x > y);
β
Correct Answer: (A)
0
Explanation: The greater-than operator (>) returns false (0) if the first operand is not greater than the second.