Question: 9. Consider the following program procedure Main is X, Y, Integer; procedure Subl is A, Y, Z Integer; beginof Subl end; -of Sub1 A, x,

 9. Consider the following program procedure Main is X, Y, Integer;

9. Consider the following program procedure Main is X, Y, Integer; procedure Subl is A, Y, Z Integer; beginof Subl end; -of Sub1 A, x, Integer; procedure Sub2 is procedure Sub3 is A, B, Z Integer; beginof Sub3 end; of Sub3 beginof Sub2 end;-of Sub2 begin of Main end;--of Main List all the variables, along with the program units where they are declared, that are visible in the bodies of Sub1, Sub2, and Sub3, assum- ing static scoping is used

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!