Why Double treated as a distinct data type.

Q11. The data type double is another floating-point type. Then why is it treated as a distinct data type?

Ans. Data type double is treated as a distinct data type because, it (double data type) occupies twice as much memory as type float, and stores floating-point numbers with much larger range and precision (significant numbers after decimal point).

Leave a Reply

Your email address will not be published. Required fields are marked *

150 Views
%d bloggers like this: