Difficulty: Easy
Correct Answer: float, double, long double
Explanation:
Introduction:
C defines three real (floating) data types for representing non-integer numbers with fractional parts. This question verifies your recall of those precise types.
Given Data / Assumptions:
Concept / Approach:
The C standard specifies three floating types: float, double, and long double. Their exact size and precision can vary by implementation, but these are the canonical floating types and appear in headers, library functions, and type promotions.
Step-by-Step Solution:
1) Recall the set of floating types defined by the standard.2) Match the options containing all three and no integers.3) Select: float, double, long double.
Verification / Alternative check:
Check any C standard reference or compiler documentation; typeof and sizeof show varying sizes but consistent type names across compilers.
Why Other Options Are Wrong:
float, double: incomplete; missing long double.short int, double, long int: includes integer types; not all are floating.double, long int, float: includes an integer type (long int); set is incorrect.
Common Pitfalls:
Confusing storage size with type identity. Even if long double maps to double on a platform, the language still defines it as a separate type.
Final Answer:
float, double, long double
Discussion & Comments