Computer Science, asked by premkhanderao9406, 10 months ago

Role of stacks and queues in computer programming equation

Answers

Answered by swarnadeep998
0

Stack is a LIFO based structure whereas Queue is a FIFO based structure

Answered by yoodyannapolis
4

Role of Stacks and Queues in computer programming are given below:-

Explanation:

Stack:- A stack is also an organized set of objects including arrays.

  • This has unique features that Remove and Replace the components can only be accessed from one end called the "Top of the stack".
  • It is often called the "last in the first out" (LIFO) type of data structure.
  • Inserting the elements into the stack is called "Push" and deleting the "Pop" stack elements.

Queue:- The queue is the first in the first out data form system (FIFO).

  • New elements are applied to the queue from one end called Rear.
  • In the queue, the items are still separated from another end called the Front end.

Learn more:-

brainly.in/question/11990274

Similar questions