Question

Show the stack with all activation record instances, including the dynamic chain, when execution...

Show the stack with all activation record instances, including the dynamic chain, when execution reaches position 1 in the following skeletal program. This programuses the deep-access method to implement dynamic scoping.
void fun1()
{
float a;
}
void fun2()
{
int b, c;
}
void fun3()
{
float d;
<--------1
}
void main()
{
char e, f, g;
}
The calling sequence for this program for execution to reach fun3 is
main calls fun2
fun2 calls fun1
fun1 calls fun1
fun1 calls fun3
3 0
Add a comment Improve this question Transcribed image text
✔ Recommended Answer
Answer #1
Here is the diagrametic representation of Dynamic scoping for calling sequence
main calls fun2
fun2 calls fun1
fun1 calls fun1
fun1 calls fun3
Add a comment
Know the answer?
Add Answer to:
Show the stack with all activation record instances, including the dynamic chain, when execution...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT