C Programming - Floating Point Issues - Discussion

Discussion Forum : Floating Point Issues - General Questions (Q.No. 1)
1.
What are the different types of real data type in C ?
float, double
short int, double, long int
float, double, long double
double, long int, float
Answer: Option
Explanation:
The floating point data types are called real data types. Hence float, double, and long double are real data types.
Discussion:
17 comments Page 1 of 2.

Safi said:   1 decade ago
A real data type is float. Therefor float, double, long double re real data types.

Raveena yadav said:   1 decade ago
Is long int not real data type ?

Sri said:   1 decade ago
long int is not real datatype. int gives a round vaule

Shiv gauri said:   1 decade ago
The floating point data types are called real data types. Hence float, double, and long double are real data types.

Reddy said:   1 decade ago
What is the need of giving (unsigned char) p[i] ?

Ranga said:   1 decade ago
Why it is called real data type?

Smiline jeba said:   1 decade ago
Because it gives the real value. Ex 2/5=2.50 it is the real value. It calculate the value accurately. If am wrong. Please correct me.

Ajay said:   1 decade ago
float, double and long double called real data type because it's compute real value of any number. For Example if we want to get accurate output suppose A = 2.3 and B = 3.2 and C, Thus, C = A +B;

We get 5.500000; Hence its called a real data type.

Ajay said:   1 decade ago
Could you explain me what is deference between double and long double real data type?

Thomsika said:   1 decade ago
Can you explain the difference between float, double and long double?


Post your comments here:

Your comments will be displayed after verification.