Re: Re: [RFClue] Constant declaration

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

 



On Tue, Oct 11, 2005 at 17:49:16 -0400, Bob Copeland wrote:
> > Actually, I think
> >
> >  char *foo;
> >
> > is more nearly equivalent to
> >
> >  char *foo = NULL;
> 
> Except unassigned pointers are not guaranteed to point to anything. 
> They might be NULL, or 0xdeadbeef, or -31415926535.

It depends. Those with storage class auto or register are random, those
with storage class static or extern are zeroed.

--
						 Jan 'Bulb' Hudec <bulb@xxxxxx>

Attachment: signature.asc
Description: Digital signature


[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