运算符

++、--

int b = a++;

先给b赋值,然后a自增。

int c = ++a;

a先自增,然后给b赋值。

posted on 2021-03-01 19:38  要给小八赚罐头钱  阅读(17)  评论(0)    收藏  举报