国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

java - 單目運算符問題;
PHPz
PHPz 2017-04-18 10:17:44
0
2
641

int a=4;
b=a*a++;
b的結(jié)果?

單目運算符優(yōu)先級比雙目運算符高,理應(yīng)是先累加然后相乘得到20,為什么程序運算結(jié)果是16?

PHPz
PHPz

學(xué)習(xí)是最好的投資!

reply all(2)
Ty80
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

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template