In a message dated 9/24/98 8:37:52 AM Pacific Daylight Time, [log in to unmask]
darmstadt.de writes:
> > In C and also, I think, Fortran (tell me if I'm wrong, please)
> > external data (e.g., COMMON) is guaranteed to be initialized
> > effectively to 0 anyway.
>
> I don't think that the `guaranteed' part is true. It might be true
> for many of implementations, however.
According to ANSI C, named COMMON blocks (but not blank COMMON) which are
implemented C style will be initialized to (integer) zero. However, this
depends on a function being linked in from the run time library which takes
care of this. It's not unusual for it to fail. Prior to the IEEE standard,
integer zero didn't necessarily appear as zero when read as floating point.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|