Mail Archives: djgpp/1998/09/18/15:45:21
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
- Raw text -