Q. What is the output of the following code snippet? int x = 10; int y = 20; cout << (!x);
β
Correct Answer: (A)
0
Explanation: The logical NOT operator (!) returns false (0) if the operand is non-zero.