Re: scopes of identifires Scope of Identifier:
The Scope of Identifier the range of program statements within which the identifier recognized as a valid Name.
1. Ervey Identifer must be declared and given a type before it is referenced (Used)
2. The Scope of an Identifer begines at its declaration.
3. The declaration is within a compound statement,the scope of the identifer ends at the end of the compound statement.we say the identifier is Local to the compound statement.
4. If the declaration is not within a compound statement,the scope of the identifier ends at the end of the file. we say the identifier has global Scope. |