Compound Assignments

Doug Gwyn gwyn at smoke.brl.mil
Tue Apr 9 07:17:51 AEST 1991


In article <1991Apr7.185259.12709 at druid.uucp> darcy at druid.uucp (D'Arcy J.M. Cain) writes:
>In article <1991Apr6.195901.25255 at dvorak.amd.com> Tim Olson writes:
>>| 	x *= y;
>>| 	x = x * y;
>>In the second example, "x" is not evaluated twice ...
>Huh?  Am I missing something ...

Yes, what you missed was that there were two examples given of compound
assignment, one involving a relatively complex l.h.s. and the other as
shown in the citation above.  The "second example" was the entire
citation, not the second line of the citation.



More information about the Comp.lang.c mailing list