0

 It is a data structure that is used to store data in a particular order in which operations are performed.  There are two types of storing orders, i.e. LIFO (last in first out) and FIFO (first in last out).
Basic operations performed in the stack:

  • Push
  • Pop
  • Peek or Top
  • isEmpty
Shathana. S.R. Asked question April 28, 2023