Compound Assignments

D'Arcy J.M. Cain darcy at druid.uucp
Tue Apr 9 22:20:48 AEST 1991


In article <1991Apr7.185259.12709 at druid.uucp> I wrote:
>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 -- it is evaluated
>>only once, just as in the first example.  The standard says just this
> [me pointing out the obvious]

Oops.  There was a first example that I missed when I posted.  The above
were examples 2 and 3.  Sorry Tim.

-- 
D'Arcy J.M. Cain (darcy at druid)     |
D'Arcy Cain Consulting             |   There's no government
Toronto, Ontario, Canada           |   like no government!
+1 416 424 2871                    |



More information about the Comp.lang.c mailing list