Among the following, which data structure uses push() operations on its data?

  • AGraph
  • BQueue
  • CStack
  • DNone of these
Show answerHide answer

Correct answer C

A stack is a linear data structure that follows LIFO (Last In, First Out) principle. push() → Adds an element to the top of the stack. pop() → Removes the element from the top of the stack.