Re: Scope of specifier extern
- From: Christian Christmann <plfriko@xxxxxxxx>
- Date: Fri, 30 Jun 2006 14:07:40 +0200
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.
.
- Follow-Ups:
- Re: Scope of specifier extern
- From: Tom St Denis
- Re: Scope of specifier extern
- References:
- Scope of specifier extern
- From: Christian Christmann
- Re: Scope of specifier extern
- From: Tom St Denis
- Scope of specifier extern
- Prev by Date: Re: Scope of specifier extern
- Next by Date: Re: Linked list, no out put,help
- Previous by thread: Re: Scope of specifier extern
- Next by thread: Re: Scope of specifier extern
- Index(es):
Relevant Pages
|