Global ptrs init to NULL or 0000?

Andrew Koenig ark at alice.UucP
Sun Nov 3 16:34:18 AEST 1985


> 
> I've got a question:  can one assume that uninitialised global/static
> pointers will init to NULL or will they be filled with 0 bytes?  This
> obviously doesn't make any difference on machines where NULL pointers
> have all 0 bits, but what about the ones that don't?

You are entitled to assume that an otherwise uninitialized global or
static item has the same value that it would have if you assigned 0 to it.



More information about the Comp.lang.c mailing list