“The floating-point numbers should always be stored in the largest type long double because it saves us form the headache of consulting the minimal ranges these data types support.” Comment.

Q12. “The floating-point numbers should always be stored in the largest type long double because it saves us form the headache of consulting the minimal ranges these data types support.” Comment upon this statement.

Ans. Type float occupies 4 bytes of memory. Type double occupies 8 bytes, twice as much memory as type float and stores floating-point numbers with much larger range and precision. Floating-point type Long double occupies 10 bytes and has only slightly greater range and precision than type double.2

Leave a Reply

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

132 Views
%d bloggers like this: