Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!udel!haven!ncifcrf!lhc!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: Just above and below main() Message-ID: <15811@smoke.brl.mil> Date: 12 Apr 91 21:08:35 GMT References: <1243@nanometrics.UUCP> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 9 In article <1243@nanometrics.UUCP> stealth@nanometrics.portal.UUCP (Steve Sabram) writes: >Our debate is which one of these two are initialized to zero if any. The variable with static storage duration, having no explicit initializer, is implicitly initialized to a zero value of the appropriate type. The variable with automatic storage duration is not implicitly initialized to anything; it should be assumed to contain garbage upon each entry to the block in which it is declared.