Operator associativity in C specifically prefix and postfix increment and decrement
问题 In C operation associativity is as such for increment, decrement and assignment. 2. postfix ++ and -- 3. prefix ++ and -- 16. Direct assignment = The full list is found here Wikipedia Operators in C My question is when we have int a, b; b = 1; a = b++; printf("%d", a); // a is equal to 1 b = 1; a = ++b; printf("%d", a); //a is equal to 2 Why is a equal to 1 with b++ when the postfix increment operator should happen before the direct assignment? And why is the prefix increment operator