Yes, but it would be true to say right-to-left here as well. There is
allways right-to-left associativity in C to my understanding.
This discussion has some parallels to one I've been involved with in
alt.comp.lang.learn.c-c++ recently (like, now). The focus there has
been on the unary ops, but it may have some bearing on where you may
have picked up the misconception above.
The way I learned, and have been teaching, precedence and
associativity has been to say that the main gaggle of unary ops up at
the top of the table (++, -- *, &, et. al.) have /equal/ precedence,
and that conflicts are resolved by applying right-to-left
associativity.
I've been informed there's /another/ equally valid way to perceive
precedence for those unary ops: to say that postfix operators have
higher precedence than prefix operators, and there's no need for any
concept of "associativity" wrt those operators.
In any case, that doesn't change the fact that left-to-right
associativity is cut-and-dried for the binary arithmetic / logical
operators.
Leor Zolman
BD Software
(e-mail address removed)
www.bdsoft.com -- On-Site Training in C/C++, Java, Perl & Unix
C++ users: Download BD Software's free STL Error Message
Decryptor at
www.bdsoft.com/tools/stlfilt.html