Q. What is the output of the following code snippet? int x = 10; int y = 20; cout << (x &= y);
β
Correct Answer: (C)
0
Explanation: The compound assignment operator (&=) performs a bitwise AND operation between x and y and returns the new value of x, which is 0.