Read the following code segment in Ada. Show the running time stack, including dynamic links and static
Fantastic news! We've Found the answer you've been seeking!
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 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;
Related Book For
Posted Date: