Computer Science, asked by Bhawanpreet5067, 11 months ago

What is a stack ? Explain the various
operations of stack with an example for
each operation.

Answers

Answered by dessuabewa
3

Stack is the operation on data which posses adding and popping.

popping in stacks-operation on a list that removes elements from the top

example (analogy) removing a book from a huge collection of books,picking a coin from a stack of coins,in computer world while writing removing using backspace key.

adding in stacks is at the top in to the list.

analogy(example) simply writing using pen or keyboard,a waiting line in super markets

Similar questions