Re: A interesting problem of C programming

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Words by vaibhav khatavkar [Wed, Jun 18, 2008 at 04:24:31PM +0530]:
> Hi Wang Yu ,
> 
>              I saw ur code ...
> 
> 
> >
> >
> >     char
> > *p;
> >
> >     p =
> > 0;
> >
> >     *printf("%s",
> > p);
> >
> >     printf("\n");   *
> >
> >
> In ur first code snippet  "%s" prints string located at p .. and thats null

No it is not.

-- 
Jose Celestino | http://japc.uncovering.org/files/japc-pgpkey.asc
----------------------------------------------------------------
"One man’s theology is another man’s belly laugh." -- Robert A. Heinlein

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux