Q. What is the output of the following code snippet? int x = 10; int y = 20; cout << (x != y);
β
Correct Answer: (A)
1
Explanation: The expression (x != y) evaluates to true, which is represented as 1 in C++.