Nesting structure of an example Pascal program
Look at the nesting structure of this program. Variables a, b and c appear in global as well as local scopes. Local scope of a variable overrides the global scope of the other variable with the same name within its own scope.
The next slide will show the global as well as the local symbol tables for this structure. Here procedure I and h lie within the scope of g ( are nested within g).
|