Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site hadron.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!rlgvax!hadron!jsdy From: jsdy@hadron.UUCP (Joseph S. D. Yao) Newsgroups: net.lang.c Subject: Re: Global ptrs init to NULL or 0000? Message-ID: <68@hadron.UUCP> Date: Mon, 11-Nov-85 19:41:28 EST Article-I.D.: hadron.68 Posted: Mon Nov 11 19:41:28 1985 Date-Received: Wed, 13-Nov-85 20:48:56 EST References: <772@whuxl.UUCP> <139200016@uiucdcsb> Reply-To: jsdy@hadron.UUCP (Joseph S. D. Yao) Organization: Hadron, Inc., Fairfax, VA Lines: 14 Summary: union initializes first In article <139200016@uiucdcsb> kenny@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@seismo.{CSS.GOV,ARPA,UUCP}