Uninitialized externals and statics.

Doug Gwyn gwyn at smoke.BRL.MIL
Fri Aug 18 01:20:17 AEST 1989


In article <2128 at infmx.UUCP> dror at infmx.UUCP (Dror Matalon) writes:
-	K&R 2.4 say "External and static variables are initialized 
-to zero by default, but it is good style to state the initialization
-anyway."
-	Is this really portable ?

It's supposed to have always been the rule.
There certainly is a lot of C code that depends on it.



More information about the Comp.lang.c mailing list