整数求和蓝调,短+=短问题C#中的程序:short a, b;a = 10;b = 10;a = a + b; // Error : Cannot implicitly convert type 'int' to 'short'.// we can also write this code by using Arithmetic Assignment Operator as given belowa += b; // But this is running successfully, why?Console.Write(a);
3 回答
慕慕森
TA贡献1856条经验 获得超17个赞
+=
a
=
a + b
- 3 回答
- 0 关注
- 350 浏览
添加回答
举报
0/150
提交
取消