How can I portably find out the smallest of INT_MAX and abs(INT_MIN)? (That\'s the mathematical absolute value of INT_MIN, not a call
INT_MAX
INT_MIN
-INT_MAX is representable as an int in all C and C++ dialects, as far as I know. Therefore:
-INT_MAX
int
-INT_MAX <= INT_MIN ? -INT_MIN : INT_MAX