home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / c / 13594 < prev    next >
Encoding:
Text File  |  1992-09-12  |  1.1 KB  |  28 lines

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