| The general answer is no. This is especially true for
subroutines which may be recursive (using a stack for local
variables - these do NOT get automatically set to zero).
If the data is static (blank COMMON) and global, it will
usually be zero initially, but we do NOT guarantee this,
nor does the Fortran Standard. If you want something to
be zero, put it in a DATA statement, or arrange to (re)initialize
it at the correct times. If you do not do this, there is NO
guarantee what the values might be. Will they usually be
zero? Yes, most likely. Do we ever guarantee it? No.
Might it change? Yes, what may be zero now just might change
in the future, or vice versa.
Cheers!
Dave Eklund
|