Caution for those considering MSC 5.0
John Stanley
john at viper.Lynx.MN.Org
Mon Feb 15 09:28:07 AEST 1988
In article <11754 at brl-adm.ARPA>
PEPRBV%CFAAMP.BITNET at husc6.harvard.EDU (Bob Babcock) writes:
.......
>The manual seems to indicate that only initialized global
>data will go here, but isn't all global data implicitly
>initialized to zero if not otherwise specified?
It's true on "many", but not all systems. Rule of thumb is NEVER
assume any UN-initialized variable contains zero (or NULL)... If you
haven't explicitly put something into a variable, assume it's set to
a random value or the constant most likely to cause your procedure to
bomb....
---
John Stanley (john at viper.UUCP)
Software Consultant - DynaSoft Systems
UUCP: ...{amdahl,ihnp4,rutgers}!meccts!viper!john
More information about the Comp.lang.c
mailing list