Which of the following operations primarily differentiates stack from other…
2024
Which of the following operations primarily differentiates stack from other data structures?
- A.
Insertion
- B.
Deletion
- C.
Pop
- D.
All of the above
Attempted by 493 students.
Show answer & explanation
Correct answer: C
The POP operation is unique to stacks. While insertion and deletion are common operations in various data structures, the LIFO principle of stack makes the POP operation distinct, which is the removal of the most recently added element.