Question discussion

In the Stack data structure, the insertion and deletion operation is done at ______.

199500Medium 1 reply 806 views
18
In the Stack data structure, the insertion and deletion operation is done at ______.
  • Aboth the end
  • Btop
  • Cmiddle
  • DAll of the above
Answer not set

Discussion 1

0
CCommunity
A stack is a linear data structure. The elements in a stack are added and removed only from one end, which is called the TOP. Hence, a stack is called a LIFO (Last-In-First-Out) data structure, as the element that was inserted last is the first one to be taken out.