Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site yeti.UUCP Path: utzoo!linus!security!genrad!mit-eddie!mit-vax!grkermit!masscomp!yeti!leiby From: leiby@yeti.UUCP (Mike Leibensperger) Newsgroups: net.lang.c Subject: Re: & operator - (nf) Message-ID: <126@yeti.UUCP> Date: Thu, 15-Dec-83 12:02:44 EST Article-I.D.: yeti.126 Posted: Thu Dec 15 12:02:44 1983 Date-Received: Mon, 19-Dec-83 02:27:30 EST References: <1974@fortune.UUCP> Organization: Masscomp, Littleton, MA Lines: 19 Dave Olson says: I would have to disagree with chris as to what should be assigned by: char *in, *out, buf[]; in = buf; out = &(*in++); since he forgot the parentheses. Given the parentheses, out SHOULD be set buf+1; that is, 'in' is incremented BEFORE the & operator is applied. I beg to differ. In evaluating the subexpression "in++", the value returned is the original value of "in". Thus, "out" will get the original value of "in". (Now to go try it for real! Flame first, ask questions later... :-) ). -- Mike Leibensperger, Massachusetts Computer Corporation ...!{ucbcad,tektronix,harpo,decvax}!masscomp!leiby