Difference between a+=1 and a=a+1 in C#

后端 未结 3 936
眼角桃花
眼角桃花 2021-01-24 23:20

I found out that in C# a+=1 is not equal to a = a+1.

For example, the following code compiles without any error: byte b = 10; b += 5;

while the following code h

3条回答
提交回复
热议问题