Re: Question on associativity and precedence
- From: Joshua Cranmer <Pidgeot18@xxxxxxxxxxxxxxx>
- Date: Fri, 04 Jul 2008 21:48:33 GMT
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
.
- Follow-Ups:
- References:
- Question on associativity and precedence
- From: ankur
- Re: Question on associativity and precedence
- From: Roedy Green
- Question on associativity and precedence
- Prev by Date: Re: Question on associativity and precedence
- Next by Date: Re: easy way to spank the monKey
- Previous by thread: Re: Question on associativity and precedence
- Next by thread: Re: Question on associativity and precedence
- Index(es):