C programming hint
Guy Harris
guy at sun.uucp
Tue Jul 23 20:02:22 AEST 1985
> 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
More information about the Comp.lang.c
mailing list