+ 2

Why is last in first out (LIFO) called last in first out?

29th Jul 2016, 10:38 PM
Kippi
Kippi - avatar
4 odpowiedzi
+ 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.
29th Jul 2016, 10:50 PM
Ricardo Pucca
Ricardo Pucca - avatar
+ 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.
14th Nov 2016, 2:18 PM
Kevin Gibson
+ 1
thats basically how a stack works. think about it. the last element inserted will be the first to come out
20th Nov 2016, 2:34 PM
Karabo “Breeze” Maimane
Karabo “Breeze” Maimane - avatar
0
Now i understand it. Thanks a lot.
29th Jul 2016, 11:58 PM
Kippi
Kippi - avatar