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)?

  1. A.

    float, long double

  2. B.

    long double, short int

  3. C.

    float, double, long double

  4. 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).

Explore the full course: Up Lt Grade Assistant Teacher 2025