Extern variables question
SCMACPHEE
macphee at engcon.marshall.ltv.com
Fri Nov 17 01:48:55 AEST 1989
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 at uunet.uu.net
LTV Missiles & Electronics Group, Dallas, Texas!
More information about the Comp.lang.c
mailing list