Home > Back-end >  Small white ask bosses
Small white ask bosses

Time:01-05

Why is this q 22 ah

CodePudding user response:

Different compilers may run results, so don't get this kind of problem, meaningless,
From the results
(+ + j) + + + j () the first operand stack (+ + j), j is 6, the second operand stack (+ + j), j of 7, because the first operand and the second operand address is the same, are j, so at this time the first operand to 7, so the combined results of 14, as temporary variables into the stack, and then the third (+ + j) operand stack, j of 8, so the final result for 14 + 8=22

CodePudding user response:

About C, C + + expression evaluation sequence, http://blog.csdn.net/fefe82/article/details/37833767, http://bbs.csdn.net/topics/370153775
  • Related