What is a stack ? Explain the various
operations of stack with an example for
each operation.
Answers
Answered by
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
Math,
6 months ago
English,
6 months ago
Environmental Sciences,
11 months ago
Business Studies,
1 year ago