static versus auto initialization

Blair P. Houghton bph at buengc.BU.EDU
Tue Jan 24 07:15:41 AEST 1989


In article <876 at auspex.UUCP> guy at auspex.UUCP (Guy Harris) writes:
>
> >... 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
>[...] the pANS says the implementation has to
>initialize the unspecified elements the same way it would have
>initialized them had they been static.

Is that not going to add an aeon or two to the running time of some of
the more structured (read:  function-laden) programs?

				--Blair
				  "Well...I _could_ use the extra
				   time for lunch..."



More information about the Comp.lang.c mailing list