Q. What is the output of the following code snippet? int x = 10; int y = 20; cout << (x % y);
β
Correct Answer: (A)
10
Explanation: The expression (x % y) evaluates to 10 because 10 divided by 20 leaves a remainder of 10.