João Victor Gomes wrote:
So, I can't analyze just the operand, I need to analyze each operation (operands and its operator). So in this case I can't analyze the precedence of the post/pre unary operators separately, because they are and operand of another expression.
To be honest, I am not sure what you are trying to say about precedence. It is what it is -- and it is not effected by the expression that it is in. For example, take your expression...
Post increment and decrement has the highest precedence, so this expression is equivalent to this...
Pre increment and decrement has the next highest precedence, so this expression is equivalent to this...
Multiplication and Division has the next highest precedence, so this expression is equivalent to ... well, not yet... You also have to take into account that these operators have left to right associativity, so, this expression is equivalent to this...
Addition has the next highest precedence, so this expression is equivalent to this...
And finally, the assignment has the lowest precedence, so the completion of the assignment is last, even though it was the first to start evaluation... since evaluation is left to right.
Notice that I simply applied the precedence on the expression, in the order of the table. The precedence table did not change based on the expression.
Henry