Home > database >  Right answer is actually 99, should not is j, 100, excuse me this answer is right, why
Right answer is actually 99, should not is j, 100, excuse me this answer is right, why

Time:09-30

CodePudding user response:

The result is 0 yo
The difference between j++ and + + j
J++, j + 1, + 1 in front of the value to the variable
+ + j, j + 1, + 1 after the value to a variable

CodePudding user response:

J=j++; May not be able to pass, write directly j++; , related discussion, very is s: 1970 's "confusion of C" annual meeting every year are written for the strange debate behind the mathematical is very simple, but some uncommon, is 0 and the distinction between power and 1 - potential, the differences of code is not complicated: it is compiled into assembly code, inc statement writing position is different, the beginning of a plus in the related code, another to add at the end of the related code, so a problem, just how also say not clear, after crossing the s, was rolled out,

CodePudding user response:

1/f, right, the result is 0,