+ 2
Why is last in first out (LIFO) called last in first out?
4 Respuestas
+ 3
Hi Kippi, this is a stack method. [L]ast element that [I]n in a stack will be the [F]irst that will be [O]ut from the stack.
I hope it helps.
+ 2
i know that you already have the answer to your question. i just wanted to mention that I find thinking of L.I.F.O and F.I.F.O (First In First Out ) as a line of people. in LIFO the person who is at the back of the line goes first. With FIFO the person who is in front goes first.
+ 1
thats basically how a stack works. think about it. the last element inserted will be the first to come out
0
Now i understand it. Thanks a lot.