Ask Question
7 March, 15:24

What is the difference between a queue and a stack?

+3
Answers (1)
  1. 7 March, 16:35
    0
    Difference between Queue and Stack are as following:-

    Queue is a FIFO (First In First Out) type data structure while Stack is a LIFO (Last In First Out) type data structure. The insertion and deletion of elements from the queue happens from two ends insertion at the tail and deletion from the front. While the insertion and deletion from stack happens from one end only that is top. The insertion and deletion operation in queue are referred as enqueue and dequeue. While in stack they are referred as push and pop respectively.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “What is the difference between a queue and a stack? ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers