Assignment Ops and Side Effects

P E Smee exspes at gdr.bath.ac.uk
Sat Apr 6 02:39:58 AEST 1991


In article <1991Apr3.173046.2367 at mccc.edu> pjh at mccc.edu (Peter J. Holsberg) writes:
>How does the standard describe the situation where, for example,
>	x++ *= y;
>is treated as if it were
>	x++ = x * y;
>and not
>	x++ = x++ * y;

The quick answer is that x++ is (explicitly) not an lvalue, and so
cannot appear on the left-hand side of an assignment operator.

-- 
Paul Smee, Computing Service, University of Bristol, Bristol BS8 1UD, UK
 P.Smee at bristol.ac.uk - ..!uunet!ukc!bsmail!p.smee - Tel +44 272 303132



More information about the Comp.lang.c mailing list