Global ptrs init to NULL or 0000?

Joseph S. D. Yao jsdy at hadron.UUCP
Tue Nov 12 10:41:28 AEST 1985


In article <139200016 at uiucdcsb> kenny at uiucdcsb.CS.UIUC.EDU writes:
>OK, so what does
>static union {
>	int i;
>	char *p;
>	} foo;
>get initialized to on a machine with a non-0 NULL?  ...

Unions get initialized per the first element of the union.
For 100+ pages of argument over why, refer to the archives of
this newsgroup.		;-)
-- 

	Joe Yao		hadron!jsdy at seismo.{CSS.GOV,ARPA,UUCP}



More information about the Comp.lang.c mailing list