A stack is a data structure in which insertion and deletion are done at one end. The element which is inserted at the end will be deleted first. This strategy is known as FIFO (First In First Out)

A stack is a data structure in which insertion and deletion are done at one end. The element which is inserted at the end will be deleted first. This strategy is known as FIFO (First In First Out)