Just above and below main()
Doug Gwyn
gwyn at smoke.brl.mil
Sat Apr 13 07:08:35 AEST 1991
In article <1243 at nanometrics.UUCP> stealth at nanometrics.portal.UUCP (Steve Sabram) writes:
>Our debate is which one of these two are initialized to zero if any.
The variable with static storage duration, having no explicit initializer,
is implicitly initialized to a zero value of the appropriate type.
The variable with automatic storage duration is not implicitly initialized
to anything; it should be assumed to contain garbage upon each entry to
the block in which it is declared.
More information about the Comp.lang.c
mailing list