Important MCQ

char c = 'A'; cout << (int)c; prints

Q.char c = 'A'; cout << (int)c; prints

A) 65
B) 1
C) 97
D) A
Correct Answer:
Option A
Detailed Explanation:
A) 65 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.