Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!mit-eddie!wuarchive!usc!elroy.jpl.nasa.gov!hacgate!devnet3!wdelv From: wdelv@devnet3.hac.com (walt del vecchio) Newsgroups: comp.lang.c Subject: Initializing Static Variables Message-ID: <13704@hacgate.UUCP> Date: 25 Feb 91 16:12:16 GMT Sender: news@hacgate.UUCP Reply-To: wdelv@devnet3.UUCP (walt del vecchio) Distribution: usa Organization: Hughes Aircraft Company, Group Systems Group, Fullerton, Ca. Lines: 13 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 ------------------------------------------------------------------------------