Initializing Static Variables

walt del vecchio wdelv at devnet3.hac.com
Tue Feb 26 03:12:16 AEST 1991


I've tried searching for the answer in "The C Programming Language" by K & R
as well as in the regularly posted FAQ's without success.
Does the declaration of a static int, for example, establish a variable
with an initial value of zero ?
If so, is it portable ?
Where did I miss the answer in the literature ?
I am using classic C on a Sun computer using SunOS 3.5.

Thanks in advance for taking the time to email me the answer.

 ------------------------------------------------------------------------------
  Walter L. Del Vecchio - Hughes Aircraft Co. - Fullerton, CA - (714) 732-5588
 ------------------------------------------------------------------------------



More information about the Comp.lang.c mailing list