Question: Read the following code segment in Ada. Show the running time stack, including dynamic links and static links, when the execution reaches position 1 in
Read the following code segment in Ada. Show the running time stack, including dynamic links and static links, when the execution reaches position 1 in the program.
procedure sub1 is
var x: integer;
procedure sub1_1(Flag: Boolean) is procedure sub1_1_1 is var x: integer; begin sub1_1(false);
end;
begin if Flag
then sub1_1_1;
else sub1_2;
end; procedure sub1_2 var y: integer; procedure sub1_2_1
var z: integer; begin … position 1
end;
begin sub1_2_1;
end;
begin sub1_1(true);
end;
Step by Step Solution
3.41 Rating (148 Votes )
There are 3 Steps involved in it
In order to show the running time stack including dynamic links and static links when the execution ... View full answer
Get step-by-step solutions from verified subject matter experts
