Consider the code fragment shown on the right and the sequence of function calls below. Draw a memory diagram that shows a run-time stack at the time when execution reaches the point 1. Follow the graphical style of memory diagrams from the textbook; show ARIs for all function calls with all necessary information, including (but not limited to) names of local variable and parameters for all functions, names of functions where control will be returned, and arrows representing the direction of dynamic links.
The sequence of function calls is:
Main calls fun1
Fun1 calls fun3
Fun3 calls fun2
Click one of our contacts below to chat on WhatsApp