asked 86.6k views
1 vote
What behavior do elements in a stack follow?

2 Answers

5 votes

Answer:

last in, first out, or LIFO behavior

Step-by-step explanation:

B

answered
User LeCoda
by
8.0k points
5 votes
A stack operates on the LIFO (Last In First Out) principle, which states that the element inserted last is the first element to be removed. Inserting an element into the stack is known as a push operation, and removing an element from the stack is known as a pop operation.
answered
User Michiel Overeem
by
8.5k points

No related questions found