Programming in C++ Name Precedence Implemented by Compiler Determines Scope . When an expression refers to an identifier, the compiler first checks the local declarations s If the identifier isn't local, compiler works outward through each level of nesting until it finds an identifier with same name. There it stops o Any identifier with the same name declared at a level further out is never reached o If compiler reaches global declarations and still can't find the identifier, an error message results9 Name Precedence Implemented by Compiler Determines Scope ❖ When an expression refers to an identifier, the compiler first checks the local declarations. ❖ If the identifier isn’t local, compiler works outward through each level of nesting until it finds an identifier with same name. There it stops. ❖ Any identifier with the same name declared at a level further out is never reached. ❖ If compiler reaches global declarations and still can’t find the identifier, an error message results