Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site umcp-cs.UUCP Path: utzoo!linus!decvax!harpo!seismo!rlgvax!cvl!umcp-cs!chris From: chris@umcp-cs.UUCP Newsgroups: net.lang.c Subject: Re: & operator Message-ID: <4260@umcp-cs.UUCP> Date: Tue, 6-Dec-83 07:37:49 EST Article-I.D.: umcp-cs.4260 Posted: Tue Dec 6 07:37:49 1983 Date-Received: Fri, 9-Dec-83 02:21:08 EST References: <162@iwu1a.UUCP> Organization: Univ. of Maryland, Computer Science Dept. Lines: 13 Regarding "char *in, *out; ... out = &*in++;": "&" has meaning only when used before an expression which is an lvalue. In this case the expression *is* an lvalue (the character that "in" used to point to before the increment), so the correct behaviour would be to assign the old value of "in" to "out". I would say that unless you feel like proving that the implementation is (or is not) correct, you should avoid such constructs. -- In-Real-Life: Chris Torek, Univ of MD Comp Sci UUCP: {seismo,allegra,brl-bmd}!umcp-cs!chris CSNet: chris@umcp-cs ARPA: chris.umcp-cs@CSNet-Relay