C Programming :: Variables & Data Types - Discussion
34 / 51
By default any real number in 'C' is treated as
Aa float
Ba double
Ca long double
DDepends upon the memory model that you are using
Show Explanation
Real number generally means non-complex floating-point numbers. It includes both rational and irrational numbers.
When the accuracy of the floating point number is insufficient, we can use 'double' to define the number. The 'double' is same as 'float' but with longer precision and takes double space (8 bytes) than float.
To extend the precision further we can use 'long double', which occupies 10 bytes of memory space.
Asked In ::
Real number generally means non-complex floating-point numbers. It includes both rational and irrational numbers.
When the accuracy of the floating point number is insufficient, we can use 'double' to define the number. The 'double' is same as 'float' but with longer precision and takes double space (8 bytes) than float.
To extend the precision further we can use 'long double', which occupies 10 bytes of memory space.
Read Full Answer
Report Error
Please Login First Click Here