home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / c / 16375 < prev    next >
Encoding:
Internet Message Format  |  1992-11-11  |  997 b 

  1. Path: sparky!uunet!ogicse!uwm.edu!zaphod.mps.ohio-state.edu!uunet.ca!wildcan!sq!msb
  2. From: msb@sq.sq.com (Mark Brader)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: How to use 'return' in c?
  5. Message-ID: <1992Nov12.064533.9545@sq.sq.com>
  6. Date: 12 Nov 92 06:45:33 GMT
  7. Article-I.D.: sq.1992Nov12.064533.9545
  8. References: <1992Nov9.190838.3391@mksol.dseg.ti.com> <7162TB3w165w@quest.UUCP>
  9. Organization: SoftQuad Inc., Toronto, Canada
  10. Lines: 14
  11.  
  12. > > > I define TRUE as (1==1) because the result of this is a boolean ...
  13. > > No, the result of this is *1*. ...
  14. > No, the result is *represented* by a 1.  "1" is not a boolean value. ...
  15.  
  16. No, the result *is* 1.  In *math*, the equality operator yields a
  17. Boolean value.  In C, the == operator yields an int value.
  18.  
  19. It may be correct to say that you don't *like* this fact, but it is
  20. not correct to deny the fact.
  21. -- 
  22. Mark Brader, Toronto        "... one man's feature is another man's bug."
  23. utzoo!sq!msb, msb@sq.com                -- Chris Torek
  24.  
  25. This article is in the public domain.
  26.