down

randy orrison randy at halcdc.UUCP
Wed Dec 14 02:45:12 AEST 1988


In article <2803 at hound.UUCP> rkl1 at hound.UUCP (K.LAUX) writes:
|> You can't assign to a ++ expression.
|> 
|
|	Of course you can!  For example, a simple string copy function:
|
|	while (*to++ = *from++) ;

Except that you're not assigning to a ++ expression in this example.
The ++ expression is a pointer, and you're assigning to what the
pointer points to.  You couldn't assign to 'to++' if you wanted to.
The statement still stands (as well it should):

	You can't assign to a ++ expression.

		-randy
-- 
Randy Orrison - Control Data in the Hills of Arden	randy at halcdc.uucp
aka randy@{ux.acss.umn.edu, umnacvx.bitnet, cctb.mn.org, umn-cs.uucp}
	C:	The Alpha and Omega of the Zen of Programming.



More information about the Comp.lang.c mailing list