Another <sigh> error!

Christopher R Volpe volpe at camelback.crd.ge.com
Sat Apr 6 00:22:37 AEST 1991


In article <1991Apr4.205257.15205 at mccc.edu>, pjh at mccc.edu (Peter J.
Holsberg) writes:
|>Oops!  I did it again!  Must be affected by the news report that said
|>that men lose brain cells faster than women!  So of course the few
|>people who answered my posting(s) are bent on showing me up rather than
|>answering my question.  Serves me right for making such stupid mistakes
|>and deflecting them from my purpose!!
|>
|>Let me *not* give an example but couch the question in more general terms.
|>
|>Where/how does the standard explain that an expression such as
|>
|>	x[i++] *= y;
|>
|>has the "x[i++]" part evaluated only once, while an expression such as
|>
|>	x *= y;
|>
|>has the "x" part evaluated twice, as in
|>
|>	x = x * y;

Whoa! In "x *= y;", x is *not* evaluated twice. What made you think it was?

|>	
|>Thanks.  I hope I got it right this time.  ;-)
|>
|>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
                            
==================
Chris Volpe
G.E. Corporate R&D
volpecr at crd.ge.com



More information about the Comp.lang.c mailing list