In a stack, objects are inserted and removed at the same ends. In a queue, objects are inserted and removed at the different ends.
Stack follows Last in first out order. Queue follows first in first out.
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|