Procedures that call other procedures in data structure

2

When executing a program, XXXX can be used in the procedure call to store the return address (and actual parameters). As procedures call other procedures, more and more return addresses must be saved. These are removed from the framework as the procedures come to an end.

XXXX can be:

  • Stack
  • List
  • Queue
asked by anonymous 15.05.2018 / 23:33

1 answer

2

If you are putting one element on top of the other and the elements can only come out from the top down, ie it is a LIFO (Last in First Out) or UEPS (Last to Enter, First to Leave), it is a stack.

In fact how memory usually works .

An example in C # .

    
15.05.2018 / 23:42