Re: Associativity of ++ and --
- From: a.laforgia@xxxxxxxxx
- Date: 28 Sep 2006 00:48:04 -0700
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".
.
- References:
- Associativity of ++ and --
- From: Chad
- Associativity of ++ and --
- Prev by Date: Re: windows&c
- Next by Date: Re: double pointer
- Previous by thread: Re: Associativity of ++ and --
- Next by thread: Associativity of ++ and --
- Index(es):