Re: 0 vs '\0'
- From: "Mabden" <mabden@xxxxxxxxxxxxxx>
- Date: Mon, 12 Sep 2005 23:43:47 GMT
"Keith Thompson" <kst-u@xxxxxxx> wrote in message
news:lnek7u2inc.fsf@xxxxxxxxxxxxxxxxxx
> anon7843@xxxxxxxxxxx (Anonymous 7843) writes:
> > In article <dg3li2$ssb$1@xxxxxxxxxxxxxxxxxxxxxxx>,
> > Richard Tobin <richard@xxxxxxxxxxxxxxx> wrote:
> >>
> >> In article <fxcVe.51023$4g5.3380805@xxxxxxxxxxxx>,
> >> DevarajA <no@xxxxxxxx> wrote:
> >>
> >> >Are 0 and '\0' the same to terminate a string?
> >>
> >> Yes, and they are the same for other purposes too. They both
> >> represent the integer zero.
> >
> > And it works as a null pointer constant!
>
> Alas, yes.
>
Does this mean we can go around on the NULL vs Zero Merry-Go-Round,
again?!!
--
Mabden
.
- Follow-Ups:
- Re: 0 vs '\0'
- From: Keith Thompson
- Re: 0 vs '\0'
- References:
- 0 vs '\0'
- From: DevarajA
- Re: 0 vs '\0'
- From: Richard Tobin
- Re: 0 vs '\0'
- From: Anonymous 7843
- Re: 0 vs '\0'
- From: Keith Thompson
- 0 vs '\0'
- Prev by Date: Re: code problem
- Next by Date: Re: pointer to void property
- Previous by thread: Re: 0 vs '\0'
- Next by thread: Re: 0 vs '\0'
- Index(es):
Relevant Pages
|