Important MCQ

bool b = 5; cout << b; prints

Q.bool b = 5; cout << b; prints

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