Re: Associativity of ++ and --




The question is how come parentheses are need when you go like:
(++p)->len;

but you don't need them when you go:
p++->len;

Associativity of ++ and -- is from right to left, while associativity
of -> is from left to right.
If you wrote "++p->len" that would mean "increment p->len".

.