Path: utzoo!utgpu!watmath!att!rutgers!ucsd!swrinde!gem.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!uunet!engcon!macphee From: macphee@engcon.marshall.ltv.com (SCMACPHEE) Newsgroups: comp.lang.c Subject: Re: Extern variables question Summary: see if this sounds right... Keywords: extern , variable , allocation Message-ID: <694@engcon.marshall.ltv.com> Date: 16 Nov 89 14:48:55 GMT References: <1958@atanasoff.cs.iastate.edu> Distribution: na Organization: LTV MEG, Dallas Lines: 13 If I understand the question correctly, you are trying to find out how the int variable "i" will be scoped at link time. I ran aross a similar problem using VAX 'C', and it caused me a lot of heart-ache. It appears that when declaring outside of a function, 'C' defaults the type to extern. To avoid the default extern type, declare it as static. Hope this helped! Scott engcon!macphee@uunet.uu.net LTV Missiles & Electronics Group, Dallas, Texas!