First learn computer science and all the theory. Next develop a programming style. Then forget all that and just hack. George Carrette
A stack is a basic data structure that insert and remove the items using last in first out (LIFO) strategy.
Push :12 Push :9 Push :24 Pop :24 Pop :9 Pop :12