New User ? Sign Up  |  Sign In  |  Help
Dummy
ask
answer
discover
     
Search for questions :
My Profile

alohachris

Open Question Bookmark and Share

Is there an easy way to describe LIFO & FIFO methods?


The more I read it out of the textbook, the more confused I become. Can someone explain the process of LIFO & FIFO so that it makes sense?

538 day(s) ago

    Comment(s) (0)
    Report Abuse
   Find Intereseting  
   E-Mail to Friends  
   Bookmark  
   Subscribe to Answer Alert  
No comments yet !!!     Be the first to comment
Answers (1)

vinwubulldogs
LIFO is Last in First out.

Imagine a pack of pringles. They are all put in, but the last pringle to go into the tube is eaten first.

FIFO is first in first out

This is like you are waiting in line at the cinema. If you are the first in the queue, you will be served first.

These ideas happen with data as well. A queue is FIFO and a stack is LIFO.

Hope this helps!

Posted 538 days ago

( 0 )
( 0 )
    Comment(s) (0)
   Report Abuse
No comments yet !!! Be the first to comment on this answer !!!

Edit your answer. Click save, when done.
Question Title Is there an easy way to describe LIFO & FIFO methods?
Your Answer
  |         |                            
bold  italic  underline  strike       big  small       superscript  subscript 
  Allows to add a link.
Caption :
Link URL :
( Must starts with "http://" )
Add  |   Cancel
  Allow to insert an image. Must be among the following file types - *.jpg, *.gif, *.png & *.bmp.
Image Url :  
( Image url must always starts with " http:// " )
Width : pixels
( Must not be greater than 450px. Enter 0px for no resize )
Add  |   Cancel
  Allow to insert YouTube video. Insert the video embed code.
Embed Code :
Add  |   Cancel
Character Count ( Max. - 5000 ) : 143
Email this question link to friends
You must enter email-address, if name is entered and vice-versa for each friend.
Friend #1 -
Friend #2 -
Friend #3 -
Friend #4 -
Friend #5 -
  Your comment on this question
  |         |                            
bold  italic  underline  strike       big  small       superscript  subscript 
  Allows to add a link.
Caption :
Link URL :
( Must starts with "http://" )
Add  |   Cancel
  Allow to insert an image. Must be among the following file types - *.jpg, *.gif, *.png & *.bmp.
Image Url :  
( Image url must always starts with " http:// " )
Width : pixels
( Must not be greater than 450px. Enter 0px for no resize )
Add  |   Cancel
  Allow to insert YouTube video. Insert the video embed code.
Embed Code :
Add  |   Cancel
Max Allowed : 5000 Characters Current Count : 0
  Your comment on this answer
  |         |                            
bold  italic  underline  strike       big  small       superscript  subscript 
  Allows to add a link.
Caption :
Link URL :
( Must starts with "http://" )
Add  |   Cancel
  Allow to insert an image. Must be among the following file types - *.jpg, *.gif, *.png & *.bmp.
Image Url :  
( Image url must always starts with " http:// " )
Width : pixels
( Must not be greater than 450px. Enter 0px for no resize )
Add  |   Cancel
  Allow to insert YouTube video. Insert the video embed code.
Embed Code :
Add  |   Cancel
Max Allowed : 5000 Characters Current Count : 0