Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84 exptools; site hoqam.UUCP Path: utzoo!linus!decvax!tektronix!uw-beaver!cornell!vax135!houxm!hoqam!twb From: twb@hoqam.UUCP (BEATTIE) Newsgroups: net.lang.c Subject: Re: Forward Referencing of Static Variables OK? Message-ID: <193@hoqam.UUCP> Date: Wed, 9-Oct-85 14:11:13 EDT Article-I.D.: hoqam.193 Posted: Wed Oct 9 14:11:13 1985 Date-Received: Sat, 12-Oct-85 05:55:37 EDT References: <365@tekcbi.UUCP> <268@ssc-vax.UUCP> Organization: AT&T Bell Laboratories, Holmdel Lines: 20 > > From the way I read K&R, the "static" keyword is redundant, unless > it is inside a function. In other words, "static int thing;" is > equivalent to "int thing;" unless the declaration takes place inside > a function. (Any comment on that??) > In K&R, page 80: "An external static variable is known within the remainder of the source file in which it is declared, but not in any other file" "Regular" external variables can be declared in one file and referenced in another thru the "extern" statement. Tom. ~!{ihnp4|hou2g|allegra|mhuxh}!hoqam!twb Snacktrek - n. The peculiar habit, when searching for a snack, of constantly returning to the refrigerator in hopes that something new will have materialized.