home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / c / 19422 < prev    next >
Encoding:
Text File  |  1993-01-08  |  883 b   |  26 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!netnews!bandy
  3. From: bandy@netnews.jhuapl.edu (Mike Bandy)
  4. Subject: Re: NH-- > NH
  5. Message-ID: <C0JMw6.680@netnews.jhuapl.edu>
  6. Organization: JHU/Applied Physics Laboratory
  7. References: <1993Jan4.140735.11269@wisipc.weizmann.ac.il> <1993Jan7.002651.10741@oracle.us.oracle.com>
  8. Date: Fri, 8 Jan 1993 16:24:06 GMT
  9. Lines: 15
  10.  
  11. In article <1993Jan4.140735.11269@wisipc.weizmann.ac.il> fedimit@wisipc.weizmann.ac.il (Dan Nabutovsky) writes:
  12.  
  13. >   Do you know that the expression NH-- > NH is always true in C ?
  14. >The reason is that NH-- returns NH before decrementing, and then
  15. >NH returns NH after decrementing.
  16. >   Similarly, NH++ < NH--
  17.  
  18. So what you're saying is that NH > NH.  I don't believe it.  Your 
  19. compiler (or your logic) has some serious problems.
  20.  
  21. -- 
  22.  
  23.     Mike Bandy
  24.     bandy@aplcomm.jhuapl.edu
  25.     Johns Hopkins University / Applied Physics Lab
  26.