Error in previous posting
Peter J. Holsberg
pjh at mccc.edu
Fri Apr 5 02:06:08 AEST 1991
The other day I posted a request for information about how the standard
describes the behavior of assignment operators when side effects are
involved, but posted an incorrect example. Here's a correct example and
a repost:
x[i++] *= y; is treated as
x[i++] = x[i] * y; instead of
x[i++] = x[i++] * y;
Where/how is this described?
Interestingly, very few textbooks mention it at all, probably because
they introduce assignment operators before side effects.
Thanks,
Pete
--
Prof. Peter J. Holsberg Mercer County Community College
Voice: 609-586-4800 Engineering Technology, Computers and Math
UUCP:...!princeton!mccc!pjh 1200 Old Trenton Road, Trenton, NJ 08690
Internet: pjh at mccc.edu Trenton Computer Festival -- 4/20-21/91
More information about the Comp.lang.c
mailing list