Example to demonstrate queue

queue

#1

Please help me demonstrate a queue with a simple example.


#2

Example: When you stand in a queue to withdraw cash from ATM.
FIFO: First Come First Serve methodology is used basically.

Same concept is also used in the programming. Create a blank queue and as per the requirement you can add items one by one.

Later they can be retrieved by referencing to the queue item.

Thanks,
Jiban


#3

This should be one of the very worst examples.


#4

I need an example. Not philosophy.


#5

Thanks for the information.