为什么a=b+++c解析为a=b++,+,c?可以是a = b,+,++ c吗?词典工具后是否有任何顺序或规则?
int a = 20, b = 10, c = 0;
// a=b+++c is compiled as
// b++ +c
// a=b+c then b=b+1
a = b+++c;
System.out.println("Value of a(b+c),b(b+1),c = " + a + "," + b + "," + c);
输出 :
Value of a(b+c),b(b+1),c = 10,11,0
繁华开满天机
holdtom
相关分类