The data type of the value 5.5 (without any suffix) in C++ is
Q.The data type of the value 5.5 (without any suffix) in C++ is
A) double
B) int
C) char
D) bool
Correct Answer:
Option A
Detailed Explanation:
A) double 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.