Q. What is the output of the following code snippet? int x = 10; int y = 20; cout << (x | y);
β
Correct Answer: (C)
30
Explanation: The bitwise OR operation between 10 (1010) and 20 (10100) results in 30.