Begining C

Jeremy Larner jeremy.larner at
Thu Feb 13 04:38:57 PST 2003

DJ Lucas wrote:

> Look at the line (#9) that assigns the value of 5 to both x and y.  I
> would actually interpret (based on what was in the book about order of
> operation) that after that expression, the value of x is 0, while the
> value of y is 5.  I know from before that this is not correct thinking,
> and it's just kind of accepted for me now, but I can't say that it works
> from right to left when everything else works left to right.  I think
> that the book is missing a good explanation (well missing an explanation
> alltogether).  How would ya'll explain this to a noob, preferably in a
> text book format, or even taken from a text that you have, so I can
> submit a decent bug report with a proposed solution?
> Thanks in advance for ideas,
> DJ Lucas.

It's not really that counter intuitive.  You naturally evaluate 
arithmatic R to L - e.g.

y = x + 5

You add five to x, and assign that value to y right?  You wouldn't 
assign x's value to y and then add 5 to it.  so x = y = 5 is the same?


Unsubscribe: send email to listar at
and put 'unsubscribe lfs-chat' in the subject header of the message

More information about the lfs-chat mailing list