![]() |
dynamic scoping
Can someone help me understand dynamic scoping with this example?
Code:
void fun1(void); /*prototype*/a. main calls fun1, fun1 calls fun2; fun2 calls fun3 b. main calls fun1; fun1 calls fun3 c. main calls fun2; fun2 calls fun3; fun3 calls fun1 d. main calls fun3; fun3 calls fun1 e. main calls fun1; fun1 calls fun3; fun3 calls fun2 f. main calls fun3; fun3 calls fun2; fun2 calls fun1 Thank you in advance |
Re: dynamic scoping
Seems a trick question to me because there is an obvious answer and you might think why are they asking if it's that obvious, but what do you think the answer is dano, and why?
|
| All times are GMT +5.5. The time now is 01:09. |