Question: Main Program: X, Y, A // global declarations ProcA Begin Output X, Y, A: End; ProcB X,Y // local declarations Begin X = 1; Y

Main Program: X, Y, A // global declarations ProcA Begin Output X, Y, A: End; ProcB X,Y // local declarations Begin X = 1; Y = 1; Call Proca End; Begin X = 4; Y = 5; A = 6; Call Proca Call ProcB End. Show the output under the following conditions: Static Scoping: Search for the variable that is declared local or in the enclosing block. A B Dynamic Scoping: Search for the variable that is declared local or in the calling block
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
