Stack Basics Explained

This post talks about Stack, is a way of storing information – a data structure.  When a new object is placed on the stack it’s placed on the top of the stack. Similar to a stack of plates, papers or anything else that you can stack and manipulate in the real world, the first thing removed […]

This post talks about Stack, is a way of storing information – a data structure.  When a new object is placed on the stack it’s placed on the top of the stack. Similar to a stack of plates, papers or anything else that you can stack and manipulate in the real world, the first thing removed from the stack is the last thing put on. There’re two fundamental operations that’re performed on the stack, the push and the pop.  A push operation initializes the stack if it’s empty, and if there’re items already on the stack, then the push operation adds an item to the top of the stack. The pop operation removes an item from the top of the stack. The pop operation exposes the next item on the stack, or results in an empty stack.

Full ArticlePerformance Team

About The Author

Deepak Gupta is a IT & Web Consultant. He is the founder and CEO of diTii.com & DIT Technologies, where he's engaged in providing Technology Consultancy, Design and Development of Desktop, Web and Mobile applications using various tools and softwares. Sign-up for the Email for daily updates. Google+ Profile.