Question: Code: Will surely give thumbs up! int d,g; void main(void) { int a,b,c; } void fun1(void) { int a,c,d; void fun2(void) { int b,d, e;
Code:


Will surely give thumbs up!
int d,g; void main(void) \{ int a,b,c; \} void fun1(void) \{ int a,c,d; void fun2(void) \{ int b,d, e; . . void fun3(void) \{ int d,e,f; .. Question 8 10 pts Given the code below, what is the referencing environment at point 2 in the code, assuming dynamic scoping is used and given the following call history. main calls fun 2 , fun 2 calls fun 3 , and fun 3 calls fun 1 \begin{tabular}{l} d (global) \\ g (global) \\ \hlinea (main) \\ b (main) \\ \hlinec (main) \\ \hlineb (fun2) \\ \hlined (fun2) \\ \hlinee (fun2) \\ \hlined (fun3) \\ \hlinee (fun3) \\ \hlinef (fun3) \\ \hlinea (fun1) \\ \hlinec (fun1) \\ \hlined (fun1) \end{tabular}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
