Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84 SMI; site sun.uucp Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxj!mhuxt!houxm!mtuxo!mtunh!mtung!mtunf!ariel!vax135!petsd!pesnta!amd!amdcad!decwrl!sun!guy From: guy@sun.uucp (Guy Harris) Newsgroups: net.lang.c Subject: Re: Re: C programming hint Message-ID: <2469@sun.uucp> Date: Tue, 23-Jul-85 06:02:22 EDT Article-I.D.: sun.2469 Posted: Tue Jul 23 06:02:22 1985 Date-Received: Thu, 25-Jul-85 08:03:37 EDT References: <899@teddy.UUCP> <729@asgb.UUCP> <730@asgb.UUCP> <463@nsc-pdc.UUCP> Organization: Sun Microsystems, Inc. Lines: 9 > The most effecient way to initialize an array (or anything else) to anything > but zeros is to use the initializer construct. Only if you are initializing the array (or whatever) at initial execution time for a non-"auto" array, or at procedure entry time for an "auto" array. If, for example, you want to initialize it each time through a loop, this won't work. Guy Harris