Re: Scope of specifier extern
- From: pete <pfiland@xxxxxxxxxxxxxx>
- Date: Fri, 30 Jun 2006 11:55:26 GMT
Christian Christmann wrote:
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.
The meaning of "extern int e;" is that e is defined
as an int, outside of the block with the extern declaration.
--
pete
.
- Follow-Ups:
- Re: Scope of specifier extern
- From: pete
- Re: Scope of specifier extern
- References:
- Scope of specifier extern
- From: Christian Christmann
- Scope of specifier extern
- Prev by Date: Re: Linked list, no out put,help
- Next by Date: Re: Scope of specifier extern
- Previous by thread: Scope of specifier extern
- Next by thread: Re: Scope of specifier extern
- Index(es):
Relevant Pages
|