1 int getsum(int a,int b) 2 { 3 return b==0?a:getsum(a ^ b,(a & b) << 1); 4 }
不使用'+'号,计算两个数相加
原文:https://www.cnblogs.com/huyupei/p/15005998.html