home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / c / 18400 < prev    next >
Encoding:
Internet Message Format  |  1992-12-15  |  1.4 KB

  1. Path: sparky!uunet!crdgw1!rdsunx.crd.ge.com!bart!volpe
  2. From: volpe@bart.NoSubdomain.NoDomain (Christopher R Volpe)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Question to test general C knowledge
  5. Message-ID: <1992Dec15.145207.3829@crd.ge.com>
  6. Date: 15 Dec 92 14:52:07 GMT
  7. References: <Bz0A46.Cvu@watserv1.uwaterloo.ca> <Bz11Iv.DM7@netnews.jhuapl.edu> <scott.40.724096473@kronos.com> <16233@goanna.cs.rmit.oz.au>
  8. Sender: volpe@bart (Christopher R Volpe)
  9. Reply-To: volpe@ausable.crd.ge.com
  10. Organization: GE Corporate Research & Development
  11. Lines: 23
  12. Nntp-Posting-Host: bart.crd.ge.com
  13.  
  14. In article <16233@goanna.cs.rmit.oz.au>, ok@goanna.cs.rmit.oz.au (Richard A. O'Keefe) writes:
  15. |> In article <scott.40.724096473@kronos.com>, scott@kronos.com (Scott Riegelhaupt-Herzig) writes:
  16. |> > Or, one of my favorites:
  17. |> > Name the four NULLs in C.
  18. |> > 
  19. |> > (They are, of course, NULL character, NULL pointer, NULL string, and null 
  20. |> > statement.)
  21. |> 
  22. |> The character's official name is NUL, not NULL.
  23. |> 
  24. |> There is no NULL string.  There are _empty_ strings, "", but they
  25. |> are not null.  (A "string" in C is defined to be a pointer to a NUL-
  26. |> terminated array of characters, and NULL is not such a pointer.)
  27.  
  28. Some people use "null string" as a synonym for "empty string", not as
  29. a synonym for "null pointer to char".
  30.  
  31. -Chris
  32. -- 
  33. ==================
  34. Chris Volpe
  35. G.E. Corporate R&D
  36. volpecr@crd.ge.com
  37.