Scope of specifier extern
- From: Christian Christmann <plfriko@xxxxxxxx>
- Date: Fri, 30 Jun 2006 13:29:57 +0200
Hi,
I've a a question on the specifier extern.
Code example:
void func( void )
{
extern int e;
//...
}
int e = 2;
int main() void
{
func();
return 0;
}
Are both the func() variable 'e' and the global 'e' same
objects? Or are they distinct symbols due to different
scopes (one is local, the other is global)?
I could not find any references in the standard ISO/IEC 9899:1999.
Regards,
Chris
.
- Follow-Ups:
- Re: Scope of specifier extern
- From: Chris Torek
- Re: Scope of specifier extern
- From: Tom St Denis
- Re: Scope of specifier extern
- From: pete
- Re: Scope of specifier extern
- Prev by Date: Re: void vs void* (philosophical question)
- Next by Date: Re: Linked list, no out put,help
- Previous by thread: Linked list, no out put,help
- Next by thread: Re: Scope of specifier extern
- Index(es):
Relevant Pages
|