Can someone explain why this is happening. I have found post increment has higher precedence than pre-increment . And Post increment is left associative and pre-increment is right associative.
For the 1st printf it it is 5,6
but the 2nd printf it is 6,7
Why in post increment both statemet has differenet value.
https://www.geeksforgeeks.org/c-operator-precedence-associativity/