Difficulty: Easy
Correct Answer: Incorrect
Explanation:
Introduction / Context:
In the C language, floating-point ranges depend on the underlying representation, which on most modern systems follows IEEE-754. Knowing the typical limits for float (single precision), double (double precision), and long double helps you choose the right type without overflow or underflow surprises. This question tests whether a quoted range matches the usual capacity of a float.
Given Data / Assumptions:
Concept / Approach:
IEEE-754 single precision (float) has approximately 7 decimal digits of precision and a maximum finite magnitude near 3.4e+38. IEEE-754 double precision (double) has roughly 15–16 digits and a maximum finite magnitude near 1.7e+308. Therefore, a bound as high as 2.25e+308 cannot describe float; it is closer to, but still not exactly, the double limit.
Step-by-Step Solution:
Verification / Alternative check:
On a standard system, printing FLT_MAX and DBL_MAX from
Why Other Options Are Wrong:
Common Pitfalls:
Confusing float with double, or assuming all platforms use identical sizes while ignoring standard macros like FLT_MAX and DBL_MAX.
Final Answer:
Incorrect.
Discussion & Comments