Home > database >  I and I
I and I

Time:10-06

Understanding of i++ and + + I:
I am programming beginners, has recently been the specific meaning of i++ and + + I don't know, Tan Haoqiang teacher's explanation in the book is not very understand, until I finally understand,
Actually i++ and + + I itself is the same, just + 1 order is different, the result is the same, but it is different in the statement, a=+ + I and a=i++ results is not the same,
For example for int I=0; Int a=i++ and int b=+ + I values of a and b are not the same, a is 0, b is 1,
Don't need to think too much, break statement is ok, int a=i++ is int a=I; i++; Int b=+ + I is i++; Int b=I; So it is better to understand first and after use and after use and the difference between the first, in some more complex statements can also be to understand these statements apart,

CodePudding user response:

This is not well understood, in before you take the I, I + since before the

CodePudding user response:

reference 1st floor huanqingdong response:
this is not well understood, in before you take the I, I + since before the

I easily in some complex sentences, understand now??

CodePudding user response:

Learn this at that time, the teacher is going to let understand, whether + + I or i++, from left to right operation, on the left is + to add! The feeling is very easy to understand,
  • Related