Important MCQ

int a = 10; int b = 3; cout << a / b; prints

Q.int a = 10; int b = 3; cout << a / b; prints

A) 3
B) 3.33
C) 4
D) 1
Correct Answer:
Option A
Detailed Explanation:
A) 3 is correct. C++ declarations use the data type before the variable name. Integer division drops the fractional part, character codes can be converted to integers, and constants cannot be changed.