两个short型相乘 short e = 1; short f = 2; short g = e*f; 两个int型相乘 int e = 1; int f = 2; int g = e*f; 这样写却是编译成功了... 为是么呢? 刚刚问了鸟丰,他说这两个short的运算都会被转换成int型,但两个int型还是int型... 那如果有溢出的时候会怎样呢,他说会发生截断 转载于:https://www.cnblogs.com/laizhd/archive/2011/08/11/2135574.html