Discover a wealth of knowledge and get your questions answered at IDNLearn.com. Join our interactive community and get comprehensive, reliable answers to all your questions.

13) Assume that the following program is implemented using the shallow-access method using a stack for each variable name. Show the stacks for the time of the execution of fun3, assuming the calling sequence is:

Sagot :

void fun1() {

floata;

...

}

void fun2() {

intb, c;

...}

void fun3() {

floatd;

... <---------------- 1

}

void main() {

chare, f, g;

...

}

The calling sequence for this program execution to reach fund is:

main calls fun2

fun2 calls fun1

fun1 calls fun1

fun1 calls fun3