A
Alex Fraser
Can negating a non-negative signed integer value ever overflow? Put another
way, can it be true that (mathematically) INT_MIN > -INT_MAX, LONG_MIN
I know that typically it can't overflow, but if that isn't guaranteed, how
can I portably detect if it would?
Alex
way, can it be true that (mathematically) INT_MIN > -INT_MAX, LONG_MIN
-LONG_MAX etc?
I know that typically it can't overflow, but if that isn't guaranteed, how
can I portably detect if it would?
Alex