home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / cplus / 13257 < prev    next >
Encoding:
Text File  |  1992-09-03  |  1.2 KB  |  38 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!taumet!steve
  3. From: steve@taumet.com (Steve Clamage)
  4. Subject: Re: Novice Questions
  5. Message-ID: <1992Sep3.163337.13948@taumet.com>
  6. Organization: TauMetric Corporation
  7. References: <1992Aug31.160703.324@ziff.com> <715452189snx@trmphrst.demon.co.uk>
  8. Date: Thu, 3 Sep 1992 16:33:37 GMT
  9. Lines: 27
  10.  
  11. nikki@trmphrst.demon.co.uk (Nikki Locke) writes:
  12.  
  13.  
  14. >I HATE it when people do that ! (:-)
  15.  
  16. >NULL is a POINTER which is guaranteed not to point to any valid location. 
  17. >It may or may not have the bit pattern all zeroes.
  18.  
  19. >'\0' (ASCII NUL) is the CHARACTER which is used to terminate strings.
  20.  
  21. >Please do not confuse the novice by using NULL to mean NUL.
  22.  
  23. I HATE it when people do that ! (:-)
  24.  
  25. Neither C nor C++ is required to use the ASCII character set.
  26.  
  27. A literal string in C and C++ will always be terminated by an
  28. implicit null character, meaning a character having zero value.
  29. In source code, this may be represented as '\0' (type char).
  30.  
  31. This need have nothing to do with ASCII, although the ASCII character
  32. set happens to have a member of zero value which is called NUL
  33. when writing about the character set.
  34. -- 
  35.  
  36. Steve Clamage, TauMetric Corp, steve@taumet.com
  37. Vice Chair, ANSI C++ Committee, X3J16
  38.