From: Erik Max Francis Newsgroups: comp.os.msdos.djgpp Subject: Re: Question about pointer Date: Fri, 18 Sep 1998 12:24:29 -0700 Organization: Alcyone Systems Lines: 25 Message-ID: <3602B36D.627F9475@alcyone.com> References: <360224e3 DOT 23441421 AT news DOT hknet DOT com> <19980918114616 DOT 17387 DOT 00000610 AT ng-cr1 DOT aol DOT com> NNTP-Posting-Host: charmaine.alcyone.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk ElvenForst wrote: > >This line *a++ = *b++ > >same as a++; b++; > > *a = *b > > Also true. No. > This is because the ++ operator has higher precedence than the > unary * operator, and the = operator's precedence is still lower. The precedence is correct, but the assignment takes place _before_ the incrementing of the two variables, because the postfix increment operator is used. -- Erik Max Francis / email max AT alcyone DOT com / whois mf303 / icq 16063900 Alcyone Systems / irc maxxon (efnet) / finger max AT sade DOT alcyone DOT com San Jose, CA / languages En, Eo / web http://www.alcyone.com/max/ USA / icbm 37 20 07 N 121 53 38 W / &tSftDotIotE \ / If you are afraid of loneliness, do not marry. / Anton Chekhov