Q. Last in First Out(LIFO)is implemented in

A
Queue
B
Array
C
Stack
D
List
Solution:
  • A stack is a container of objects that are inserted and removed according to the last-in first-out (LIFO) principle.
  • In the pushdown stacks only two operations are allowed: push the item into the stack, and pop the item out of the stack.
Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!