Can anyone explain exactly what the post- and pre- increment is, because from what I know, I'm just getting more confused?

前端 未结 0 470
故里飘歌
故里飘歌 2021-01-28 08:58

shouldn\'t this be, 11 is good and 21 is bad? because, in case of i++, the value 10 first gets evaluated if equal to i, and then incremented?

int i = 10;
if(i++ =         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题