Q. What will be the output of the following C++ code?
int x = 10;
int y = 5;
cout << x / y;
β
Correct Answer: (A)
5
Explanation: In integer division, the result is the quotient of the division. So, 10 / 5 equals 2.