// Author: heizmann@informatik.uni-freiburg.de // Date: 2015-09-09 // // We assume sizeof(int)=4 and sizeof(long)>4. #include int main() { // The operand 1LL has type long long. Due to the usual arithmetic conversions, // 2147483647 is converted to long long before the addition, hence there is // no overflow. int x = (2147483647 + 1LL) - 23; printf("%d\n", x); return 0; }