What are the two primary operations performed on a stack?

  • Add and Remove
  • Enqueue and Dequeue
  • Insert and Delete
  • Push and Pop
The two primary operations performed on a stack are push (to add an element) and pop (to remove the last added element). The push operation adds an element to the top of the stack, and the pop operation removes the last added element from the top of the stack.
Add your answer
Loading...

Leave a comment

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