static versus auto initialization
Guy Harris
guy at auspex.UUCP
Sat Jan 21 04:35:12 AEST 1989
>... for Auto there is actual code to only initialize the specified
>elements, the rest defaulting to whatever was in the memory
>allocated for the array.
Which, of course, won't be true on any ANSI C-conformant compiler
(barring a big surprise like the sections of the dpANS I cited in an
earlier posting changing) - the pANS says the implementation has to
initialize the unspecified elements the same way it would have
initialized them had they been static.
More information about the Comp.lang.c
mailing list