84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
int a=4;b=a*a++;b的结果?
单目运算符优先级比双目运算符高,理应是先累加然后相乘得到20,为什么程序运算结果是16?
学习是最好的投资!
int a = 4; int b = a*++a; // 20
The priority of increment and decrement is indeed higher than *. For example, in the above example, is operated first ++a
++a
But there is still a difference between ++a a++
a++ takes the value first and then calculates the increment by 1, ++a takes the value first and then takes the value
The priority of increment and decrement is indeed higher than *. For example, in the above example, is operated first
++a
But there is still a difference between ++a a++
a++ takes the value first and then calculates the increment by 1, ++a takes the value first and then takes the value