Question: Given the following program: 1 int h , i; 2 void B ( int w ) { 3 int j , k; 4 i =
Given the following program:
int h i;
void Bint w
int j k;
i w;
w w ;
void Aint x int y
float i j;
Bh;
i ;
void main
int a b;
h ; a ; b ;
Aa b;
Bh;
a Assume dynamic scoping and a call history of: mainline Aline B For each function
list all of the variables referenced and the line on which it was declared
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
