In a data structure test I had the following question:
In a data structure of type stack, the element that will be removed of the structure is the one that is stored
a) there is more time.
b) There is less time.
c) at the base of the structure.
d) in the structure header.
e) in the center of the structure.
At the time of replying I was in doubt between:
b) less time.
d) in the structure header.
Mainly because I saw them as being equivalent, the element that is stored the least time is stored at the top of the structure, which would be equivalent to the header, right?
So it is incorrect to state that in a data structure of the stack type, the element that will be removed from the structure is the one that is stored in the stack header?