Which operation removes the top element from a stack?
- A Push
- B Pop
- C Enqueue
- D Peek
Explanation
Pop removes the element at the top of the stack, while push adds an element and peek only reads the top.
Which operation removes the top element from a stack?
Pop removes the element at the top of the stack, while push adds an element and peek only reads the top.