I was doing some exercises on the order of execution of operations in C and I came across a case that I did not quite understand.
int d = 1;
int e = d--/10; // the result of e will be 0;
before calculating the value of "e", we decremented the "d" then we did the division.
on the other hand in "f", we made the division before decrementing the "d"!
int d = 1;
int f = 10/d--; // the result of f will be: 10
My question is: why there is a differentiation in the value of "d" used knowing that in both cases the decrementation of "d" is a post-decrement?