User:Hafizmudassir37

What is stack in the data structure ? Stack is a concept in which last in first out method follows which mean that every element which is enters at number last will be out from the list at the first. For example:if you take a basket of bolls and then start putting balls into the basket and the ball which you put at the last only this ball will be drawn out at last.