Is it 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 header?

1

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?

    
asked by anonymous 27.04.2017 / 00:25

1 answer

1

You would need to define what is heading. A stack has no header. So either you're talking about something else in this hypothetical answer or you're using the term in an unusual way, at least for me.

I think you're even talking about stack in option d.

The only one that makes sense is b.

    
27.04.2017 / 00:35