A _______ data structure is used for storing data elements that are processed in a last-in, first-out (LIFO) order.

  • Linked List
  • Queue
  • Stack
  • Tree
A stack is used for storing data elements in a last-in, first-out (LIFO) order. It means the element that is added last is the one that is removed first. Stacks are commonly used in programming for tasks like function calls and undo mechanisms.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *