整數(shù)求和藍(lán)調(diào),短+=短問題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貢獻(xiàn)1856條經(jīng)驗 獲得超17個贊
+=
a
=
a + b
- 3 回答
- 0 關(guān)注
- 371 瀏覽
添加回答
舉報
0/150
提交
取消