The function to insert data in a stack data structure is _____?

  • APop
  • BPush
  • CInsert
  • DNone of these
Show answerHide answer

Correct answer B

The Push function is used to insert (add) an element onto the top of a stack. In stack operations, Push = Insert, while Pop = Remove.