Which one of the following is the process of inserting an element in the stack?

20232022

Which one of the following is the process of inserting an element in the stack?

  1. A.

    Insert

  2. B.

    Add

  3. C.

    Push

  4. D.

    None of the above

Attempted by 1220 students.

Show answer & explanation

Correct answer: C

Explanation: In a stack data structure, the operation of adding an element is called a push operation. This is a standard term used to describe the insertion of an item onto the top of the stack.

Explore the full course: Lti Mindtree Preparation