Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!xanth!nic.MR.NET!shamash!halcdc!randy From: randy@halcdc.UUCP (randy orrison) Newsgroups: comp.lang.c Subject: Re: down Message-ID: <132@halcdc.UUCP> Date: 13 Dec 88 16:45:12 GMT References: <45370@yale-celray.yale.UUCP> <2803@hound.UUCP> Reply-To: randy@halcdc.UUCP (randy orrison) Organization: Control Data in the Hills of Arden, Minnesota Lines: 19 In article <2803@hound.UUCP> rkl1@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@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.