【问题标题】:Why adding two big integers will get a negative one?为什么两个大整数相加会得到一个负数? 【发布时间】:2015-02-18 11:24:20 【问题描述】: 我在自己的电脑上试过这些。 例如。 2000000000+2000000000=-12315555331 我不知道为什么这不符合标准,可能是因为长度。 所以我写这个只是为了通过检查。 【问题讨论】: 自己电脑下 C++ numbers add to a negative的可能重复 Adding two positive integers gives negative answer.Why? 标签: math 【解决方案1】: 因为以渴望为例。 32位中的第一位是符号位,即为1为负,0为正。 【讨论】: