Procedures calling other procedures in data structure

Asked

Viewed 41 times

2

In the implementation of a XXXX can be used in the procedure call, to store the return address (and actual parameters). As procedures call for other procedures, more and more return addresses must be saved. These are removed from the structure as the procedures come to an end.

XXXX can be:

  • Stack
  • List
  • Queue

1 answer

2


If you put one element on top of another and the elements can only come out from top to bottom, that is to say, it is a LIFO (Last in First Out) or UEPS (Last In, First Out), it is a stack.

In fact is how memory works.

An example in C#.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.