search

Home  >  Q&A  >  body text

C language calculation order problem

a b

Why is (a) b, not a (b)

Isn’t the calculation order in C language from right to left?

平凡的小田平凡的小田1712 days ago1485

reply all(1)I'll reply

  • 移动用户-5035458

    移动用户-50354582021-06-24 10:15:03

    Self-increment and self-decrement are both left-associative, and self-increment has a higher priority than addition, so it is (a) b

    reply
    0
  • Cancelreply