[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

C Programming :: Variables & Data Types - Discussion

Home > C Programming > Variables & Data Types > MCQs Questions Discussion

34 / 51

Choose the correct option.

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

Answer: Option (Login/Signup)

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 ::

Post Your Answer Here:     

Reply    
Rate This: +0 -0
    Report


Report Error

Please Login First Click Here