short a = 0;
short b = 0;
short c = 0;
a = b + c;为什么以上代码会提示出错,无法将类型“int”隐式转换为“short”。
为什么short+short会变成了int,long+long也会这样。