因为 int 的容量为 −231∼−1-2^{31} \sim -1−231∼−1 和 0∼231−10 \sim 2^{31}-10∼231−1。 所以 int 的总容量为 2322^{32}232(正负数、000)。 于是,只要我们让代码输出一个 int 类型的 2322^{32}232,那么代码就会输出 000。 那我们可以开始证明了。 ∵0=232\because 0=2^{32} ∵0=232 ∴0+1=1=232+1\therefore 0+1=1=2^{32}+1∴0+1=1=232+1 ∴1+1=1+1+0+0+0=1+1+232+232+232\therefore 1+1=1+1+0+0+0=1+1+2^{32}+2^{32}+2^{32}∴1+1=1+1+0+0+0=1+1+232+232+232 ∴1+1=3×232+2\therefore 1+1=3 \times 2^{32}+2∴1+1=3×232+2 若 1+1=21+1=21+1=2,两边同时除以 222,则 1=3×231+11=3 \times2^{31}+11=3×231+1,又 0=2320=2^{32}0=232,故 0=2310=2^{31}0=231,矛盾,故 1+1≠21+1 \ne 21+1=2。