Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!psuvax1!wuarchive!zaphod.mps.ohio-state.edu!ncar!noao!arizona!dave From: dave@cs.arizona.edu (Dave P. Schaumann) Newsgroups: comp.lang.c Subject: Re: Initializing Static Variables Summary: Dave's law of non-useability ;-) Message-ID: <957@caslon.cs.arizona.edu> Date: 26 Feb 91 02:32:14 GMT References: <13704@hacgate.UUCP> <1991Feb26.014801.29244@athena.mit.edu> Distribution: usa Organization: U of Arizona CS Dept, Tucson Lines: 18 In article <1991Feb26.014801.29244@athena.mit.edu> scs@adam.mit.edu writes: >In article <13704@hacgate.UUCP> wdelv@devnet3.UUCP (walt del vecchio) writes: >>[what's the value of an uninitailized static var?] > >[static vars are 0, auto vars are random] Interesting. I'm just working out "Dave's law of variable non-useability": An uninitialized variable can be counted on to have a random value, until such time as a random value will be useful to the programmer. Then, an uninitialized variable can be counted on to be zero. (for the humor impaired, re-read with ";-)" mode on...) -- Dave Schaumann | Is this question undecidable? dave@cs.arizona.edu |