Re: Scope of specifier extern



On Fri, 30 Jun 2006 04:55:43 -0700, Tom St Denis wrote:


void func( void )
{
extern int e;
//...
}

int e = 2;

int main() void
{
func();
return 0;
}

Yes they're the same [at least with GCC on most platforms I can think
of].

That's the point. I figured out that GCC is considering both 'e' as one
and the same object. However, I don't know if this strictly corresponds
to ANSI C-99.

.



Relevant Pages