Basic Concept of Stack : C Data Structure
Definition : Stack is first in last out Structure (LIFO) Structure .Explanation :
- Books are kept one above the other
- Book which is inserted first is Taken out at last.(Brown)
- Book which is inserted Lastly is served first.(Light Green)
Common Example :
- Suppose In function all chairs are placed in Vertical Pile.
- There are 100 chairs , then Obviously the topmost chair is removed first.
- Topmost chair is kept first and same is removed first .
- Bottommost chair though kept first,but removed Lastly
- In short Newcomer has given Priority than older .
Image From : dezeen.com
0 Comments:
Post a Comment
Your Feedback :This is Growing Site and Your Feedback is important for Us to improve the Site performance & Quality of Content.Feel Free to contact and Please Provide Name & Contact Email