Home > Back-end >  Questions about the operation priority and the order of operations
Questions about the operation priority and the order of operations

Time:12-31

The first problem:
The first: 1 | | a=2 & amp; & 2, & amp; & First priority is higher than the | |, but run | | 1, cause short circuit, don't give a assignment
The second: 1? Four? 3:5, two ternary judgment, but running behind the first, instead of from left to right
The third: int I=1; Int a=i++ + + + I, the result is 4, a=+ + I + i++ result is 5, the results of different

The individual feels are the problems of the sequence, oneself doesn't seem to learn to understand nature, consult!
  • Related