Re: Question on associativity and precedence



Roedy Green wrote:
On Fri, 4 Jul 2008 12:30:22 -0700 (PDT), ankur
<ankur.a.agarwal@xxxxxxxxx> wrote, quoted or indirectly quoted someone
who said :

z[index] = index = 2;

first of all, don't use cascaded assignment operators. The only time
you see them in on exams.

Not quite true: I occasionally use something in the form of "x = y = 0" myself, but it tends to be rare.

Certainly, it's not at as stupid as the ageless C question "What does i=i++ evaluate to?"

--
Beware of bugs in the above code; I have only proved it correct, not tried it. -- Donald E. Knuth
.