Ask Question
19 January, 16:11

What is the difference between a queue and a stack?

+3
Answers (1)
  1. 19 January, 16:27
    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?
Find an answer to your question 👍 “What is the difference between a queue and a stack? ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers