home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!netnews!bandy
- From: bandy@netnews.jhuapl.edu (Mike Bandy)
- Subject: Re: NH-- > NH
- Message-ID: <C0JMw6.680@netnews.jhuapl.edu>
- Organization: JHU/Applied Physics Laboratory
- References: <1993Jan4.140735.11269@wisipc.weizmann.ac.il> <1993Jan7.002651.10741@oracle.us.oracle.com>
- Date: Fri, 8 Jan 1993 16:24:06 GMT
- Lines: 15
-
- In article <1993Jan4.140735.11269@wisipc.weizmann.ac.il> fedimit@wisipc.weizmann.ac.il (Dan Nabutovsky) writes:
-
- > Do you know that the expression NH-- > NH is always true in C ?
- >The reason is that NH-- returns NH before decrementing, and then
- >NH returns NH after decrementing.
- > Similarly, NH++ < NH--
-
- So what you're saying is that NH > NH. I don't believe it. Your
- compiler (or your logic) has some serious problems.
-
- --
-
- Mike Bandy
- bandy@aplcomm.jhuapl.edu
- Johns Hopkins University / Applied Physics Lab
-