home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!crdgw1!rdsunx.crd.ge.com!bart!volpe
- From: volpe@bart.NoSubdomain.NoDomain (Christopher R Volpe)
- Newsgroups: comp.lang.c
- Subject: Re: Question to test general C knowledge
- Message-ID: <1992Dec15.145207.3829@crd.ge.com>
- Date: 15 Dec 92 14:52:07 GMT
- References: <Bz0A46.Cvu@watserv1.uwaterloo.ca> <Bz11Iv.DM7@netnews.jhuapl.edu> <scott.40.724096473@kronos.com> <16233@goanna.cs.rmit.oz.au>
- Sender: volpe@bart (Christopher R Volpe)
- Reply-To: volpe@ausable.crd.ge.com
- Organization: GE Corporate Research & Development
- Lines: 23
- Nntp-Posting-Host: bart.crd.ge.com
-
- In article <16233@goanna.cs.rmit.oz.au>, ok@goanna.cs.rmit.oz.au (Richard A. O'Keefe) writes:
- |> In article <scott.40.724096473@kronos.com>, scott@kronos.com (Scott Riegelhaupt-Herzig) writes:
- |> > Or, one of my favorites:
- |> > Name the four NULLs in C.
- |> >
- |> > (They are, of course, NULL character, NULL pointer, NULL string, and null
- |> > statement.)
- |>
- |> The character's official name is NUL, not NULL.
- |>
- |> There is no NULL string. There are _empty_ strings, "", but they
- |> are not null. (A "string" in C is defined to be a pointer to a NUL-
- |> terminated array of characters, and NULL is not such a pointer.)
-
- Some people use "null string" as a synonym for "empty string", not as
- a synonym for "null pointer to char".
-
- -Chris
- --
- ==================
- Chris Volpe
- G.E. Corporate R&D
- volpecr@crd.ge.com
-