Important MCQ

The memory used by a variable depends on its

Q.The memory used by a variable depends on its

A) name
B) colour
C) line number
D) data type
Correct Answer:
Option D
Detailed Explanation:
D) data type 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.