Ask Question
22 August, 02:59

What is the difference between a queue and a stack?

+2
Answers (1)
  1. 22 August, 04:56
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers