なかなかアグレッシブ
$ cat test.c #include <stdio.h> #include <limits.h> int main() { int x = INT_MAX, y = INT_MAX; x = x * 10; x = x / 10; y = (y * 10) / 10; printf("%d <-> %d\n", x, y); } $ gcc-3.3 test.c && ./a.out -1 <-> -1 $ gcc-4.0 test.c && ./a.out -1 <-> 2147483647
出てくる悪魔を利用して。