No, the behavior is implementation defined because C and C++ don't require IEEE-754, even though that is the most common representation by far.
To be sure that IEEE-754 is used:
- in C, use
#ifdef __STDC_IEC_559__
- in C++, use the
std::numeric_limits::is_iec559
constants