Answer:
see explaination
Step-by-step explanation:
a) Main call fun1; fun1 calls fun2; fun2 calls fun3.
Answer:
Variables that are visible at the last function call:
a ------------- defined in main
b ------------- defined in fun1
c ------------- defined in fun2
d, e, f ------------- defined in fun3
b) Main call fun1; fun1 calls fun3.
Answer:
Variables that are visible at the last function call
a ------------- defined in main
b, c ------------- defined in fun1
d, e, f ------------- defined in fun3
c) Main calls fun2; fun2 calls fun3; fun3 calls fun1.
Answer:
Variables that are visible at the last function call:
a ------------- defined in main
e, f ------------- defined in fun3
b, c, d ------------- defined in fun1
d) Main calls fun3; fun3 calls fun1.
Answer:
Variables that are visible at the last function call:
a ------------- defined in main
e, f ------------- defined in fun3
b, c, d ------------- defined in fun1
e) Main calls fun1; fun1 calls fun3; fun3 calls fun2.
Answer:
Variables that are visible at the last function call:
a ------------- defined in main
b ------------- defined in fun1
f ------------- defined in fun3
c, d, e ------------- defined in fun2
f) Main calls fun3; fun3 calls fun2; fun2 calls fun1
Answer:
Variables that are visible at the last function call:
a ------------- defined in main
f ------------- defined in fun3
e ------------- defined in fun2
b, c, d ------------- defined in fun1