Home > Back-end >  Why c output 11
Why c output 11

Time:10-01

According to the operator precedence, the inside of the parentheses b - should be first, isn't it, how to calculate a - b ah,

CodePudding user response:

The initial value is 1 b
B - calculating result is 1

CodePudding user response:

B - is a relief, after the first a - b, then b - 1

CodePudding user response:

No problem, b - which means straight c=a - b, then b -=1;

CodePudding user response:

Pay attention to the usage difference - and - b b, b, is the first to participate in the calculation, and then b - 1; - b - 1 first and calculation

CodePudding user response:

Nothing wrong with distinguish the use of the b - to - b can!
  • Related