C Programming - Declarations and Initializations - Discussion

Discussion Forum : Declarations and Initializations - General Questions (Q.No. 6)
6.
By default a real number is treated as a
float
double
long double
far double
Answer: Option
Explanation:

In computing, 'real number' often refers to non-complex floating-point numbers. It include both rational numbers, such as 42 and 3/4, and irrational numbers such as pi = 3.14159265...

When the accuracy of the floating point number is insufficient, we can use the 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.

Discussion:
50 comments Page 5 of 5.

Kriti said:   9 years ago
Why it is not long double?

Jack said:   8 years ago
Long double is also the right one. Why to take only double?

Lavanya said:   8 years ago
Is there far double data type in c?

TAMIZHARASI said:   8 years ago
Thanks for the given explanation.

Rekha said:   8 years ago
I have a doubt. What is the difference between the following terms?

Int a; and int a=20;
And
Int a=b,b=20;
Printf("%d",a);

What will be the output causes if the values consider first a = b or b values.
(1)

Mounika said:   8 years ago
Thanks for the given explanation.

Aathiraja said:   8 years ago
Please explain clearly.
(1)

Sai veena said:   8 years ago
Why we use long double for computing quadratic equations and why not floating point?

Satish said:   7 years ago
Here, What is mean by var?

Vasam sai prathyusha said:   6 years ago
I can't understand. Anyone Please explain once.


Post your comments here:

Your comments will be displayed after verification.