posted 17 years ago
Hi,
In operator precedence the postfix operator apparently has a higher priority than the additive operators. However, if we have:
int c = 10;
int d = 5 + c++;
d equates to 15 - which is what I would expect because the postfix operator is only applied when the entire expression has been resolved.
I don't understand why then the postfix operators come before the additive operators on the operator precedence list.
Could anyone explain?
Many Thanks