W
William L. Bahn
I'm working on some lessons and want to be sure I get some stuff correct. If
any of this is covered in the FAQ, please feel free to point me to the
section - I couldn't find it.
----------------------------------------------------------------
Overflow/Wraparound behavior of integer values
----------------------------------------------------------------
If an arithmetic operation such as (+, -, *) yields a result that exceeds
the bounds, is the behavior in any way defined? I know that, for instance,
integers will generally wrap around - but is this the defined behavior?
----------------------------------------------------------------
Logical Operators on floating point values
----------------------------------------------------------------
I know that the bitwise operators are not defined for floating point
representations (though I have no idea why unless it might be to avoid
imposing behavior that might be more difficult to implement if the values
involved are in a floating point unit - any thoughts?). My question is the
logical operators (!, &&, and ||). Are the behaviors of these defined at
all?
any of this is covered in the FAQ, please feel free to point me to the
section - I couldn't find it.
----------------------------------------------------------------
Overflow/Wraparound behavior of integer values
----------------------------------------------------------------
If an arithmetic operation such as (+, -, *) yields a result that exceeds
the bounds, is the behavior in any way defined? I know that, for instance,
integers will generally wrap around - but is this the defined behavior?
----------------------------------------------------------------
Logical Operators on floating point values
----------------------------------------------------------------
I know that the bitwise operators are not defined for floating point
representations (though I have no idea why unless it might be to avoid
imposing behavior that might be more difficult to implement if the values
involved are in a floating point unit - any thoughts?). My question is the
logical operators (!, &&, and ||). Are the behaviors of these defined at
all?