Path: utzoo!attcan!uunet!mcvax!ukc!edcastle!aiai!richard From: richard@aiai.ed.ac.uk (Richard Tobin) Newsgroups: comp.lang.c Subject: Re: Uninitialized externals and statics. Message-ID: <783@skye.ed.ac.uk> Date: 22 Aug 89 18:35:27 GMT References: <2128@infmx.UUCP> <10764@smoke.BRL.MIL> <478.nlhp3@oracle.nl> <1989Aug19.053711.7462@twwells.com> <1786@crdgw1.crd.ge.com> Reply-To: richard@aiai.UUCP (Richard Tobin) Organization: AIAI, University of Edinburgh, Scotland Lines: 16 In article <1786@crdgw1.crd.ge.com> davidsen@crdos1.UUCP (bill davidsen) writes: > Although the proposed ANSI standard (3.5.7 line 20) calls for >initialization to zero, cast to the appropriate type (my paraphrase) for >arithmetic and pointer types, virtually all implementations initialize >to zero (without cast) in the absense of explicit initialization. Are there any well-known machines on which these aren't equivalent, and on which the "wrong" initialization is done? -- Richard -- Richard Tobin, JANET: R.Tobin@uk.ac.ed AI Applications Institute, ARPA: R.Tobin%uk.ac.ed@nsfnet-relay.ac.uk Edinburgh University. UUCP: ...!ukc!ed.ac.uk!R.Tobin