home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / cplus / 19857 < prev    next >
Encoding:
Text File  |  1993-01-25  |  593 b   |  22 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!mcsun!sunic!ugle.unit.no!alkymi.unit.no!robert
  3. From: robert@alkymi.unit.no (Robert Schmidt)
  4. Subject: Is (p) instead of (p!=NULL) portable? 
  5. Message-ID: <1993Jan25.125627.29030@ugle.unit.no>
  6. Sender: news@ugle.unit.no (NetNews Administrator)
  7. Organization: Norwegian Institute of Technology
  8. Date: Mon, 25 Jan 93 12:56:27 GMT
  9. Lines: 11
  10.  
  11.  
  12. In PC C's, the NULL pointer is defined with a bit pattern of all zero's,
  13. and the constructs 
  14.       if (p)
  15. and
  16.       if (!p)
  17. checks for NULL and non-NULL respectively.  Is this portable to *all*
  18. platforms?
  19.  
  20.  
  21. Robert
  22.