Path: utzoo!attcan!uunet!lll-winken!ncis.llnl.gov!helios.ee.lbl.gov!nosc!ucsd!rutgers!cmcl2!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: static versus auto initialization Message-ID: <9452@smoke.BRL.MIL> Date: 20 Jan 89 15:29:13 GMT References: <8901182125.AA06523@decwrl.dec.com> <7483@chinet.chi.il.us> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 7 In article <7483@chinet.chi.il.us> john@chinet.chi.il.us (John Mundt) writes: >Since the stack is constantly reused and not initialized, the value >of abc_auto[4] is whatever happened to be in that memory location. I'm sure that's what was happening, but it's not what is supposed to happen. Initialization of an array should initialize ALL its elements, not just the ones explicitly specified in the source code.