Question: Consider the following program fragment ( no backdoor reference is allowed ) : program Main; var x , ct , z : integer; program P
Consider the following program fragment no "backdoor" reference is allowed:
program Main;
var x ct z : integer;
program P;
var a ct : integer;
program P;
var a b x : integer;
begin..end; P
begin..end; P
procedure P;
var b y ct : integer;
procedure P;
var a b : integer;
begin end; P
begin end; P
begin end; Main
Assuming static scoping, list all of the variables in the form procedure.variable, where procedure is the name of the procedure declaring the variable Pa for variable a declared in procedure that are visible in each body for P P P P
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
