In C, what are the various types of real data type (floating point data type)?
2022
In C, what are the various types of real data type (floating point data type)?
- A.
float, long double
- B.
long double, short int
- C.
float, double, long double
- D.
short int, double long int, float
Attempted by 1043 students.
Show answer & explanation
Correct answer: C
The correct option is Option 3: float, double, long double.
In C, real or floating-point data types store fractional numbers with varying degrees of precision and memory sizes: float (4 bytes), double (8 bytes), and long double (10-16 bytes).