home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!cs.utexas.edu!torn!utzoo!telly!druid!darcy
- From: darcy@druid.uucp (D'Arcy J.M. Cain)
- Subject: Re: Help! what's wrong with this program?
- Message-ID: <1992Sep12.161347.12976@druid.uucp>
- Date: Sat, 12 Sep 1992 16:13:47 GMT
- Distribution: usa
- References: <1992Sep6.041410.16388@eng.ufl.edu> <1992Sep6.152442.25878@en <1992Sep6.203612.17566@mnemosyne.cs.du.edu>
- Organization: D'Arcy Cain Consulting
- Lines: 16
-
- swalter@nyx.cs.du.edu (DreamWeaver) writes:
- >Correct me if I'm wrong (lord knows that will happen ;) ... but doesn't
- > *bp++ = c;
- >in the pusch() function actually mean (as far as order of precedence):
- > (*bp)++ = c;
-
- The indirection operator and the increment operator have the same
- precedence but associate right to left. This means that this
- expression is equivalent to "*(bp++)" exactly as one would expect.
- What happened when you tried this on your compiler before posting?
-
- --
- D'Arcy J.M. Cain (darcy@druid.com) |
- D'Arcy Cain Consulting | There's no government
- Toronto, Ontario, Canada | like no government!
- +1 416 424 2871 DoD#0082 |
-