0 votes
in DBMS by
What are differences between stack and queue data structure?

1 Answer

0 votes
by
StackQueue
Stack is a linear data structure where data is added and removed from the top.Queue is a linear data structure where data is ended at the rear end and removed from the front.
Stack is based on LIFO(Last In First Out) principleQueue is based on FIFO(First In First Out) principle
Insertion operation in Stack is known as push.Insertion operation in Queue is known as eneque.
Delete operation in Stack is known as pop.Delete operation in Queue is known as dequeue.
Only one pointer is available for both addition and deletion: top()Two pointers are available for addition and deletion: front() and rear()
Used in solving recursion problemsUsed in solving sequential processing problems

Related questions

0 votes
asked Aug 9, 2023 in DBMS by DavidAnderson
0 votes
asked Aug 9, 2023 in DBMS by DavidAnderson
...