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 2 of 2.

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.

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.

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

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

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.

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

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


Post your comments here:

Your comments will be displayed after verification.