a=(b=1,b)+(b=2,b)+(b=3,b); /*ANSI does NOT say a=6*/

Wayne Throop throopw at dg_rtp.UUCP
Fri Oct 3 05:22:18 AEST 1986


Awright, awright, I forgot to parenthesize the assignments to b.

I will also take this opportunity to point out that ANSI *might* be
taken to imply a must get 6, if the meaning of their wording
restricting interleaving of expressions isn't what I think it is.

--
At one point I thought it would be easier to rewrite all my books
without using the letter 's'.
                                 --- D.E. Knuth
-- 
Wayne Throop      <the-known-world>!mcnc!rti-sel!dg_rtp!throopw



More information about the Comp.lang.c mailing list