What is stack in data structure? Different between stack and queue?

Answer: – Stack is one of the most essential linear data structure. Implementation of most the of system program are based on stack data structure. We can insert or delete an element from a list, which take place from one end. The insertion of element on to the stack is called as push a deletion operation is called pop. Due to the push operation from one end element are added to the stack. The stack is also known as push down list. The most list reachable elements in the stack are respectively known as the top and bottom of the stack. A stack is an arranged collection of elements into which new elements can be inserted or from which existing new element can be deleted at one end. Stack is a set of element in a last-in-first-out technic. The end of the stack where the insertion of deletion operation is carried out is top.

Stack and Queue.png