Basic Concept of Stack : C data Structure

February 22, 2010 No Comments » Hits : 263






Basic Concept of Stack : C Data Structure


Definition : Stack is first in last out Structure (LIFO) Structure . 

Explanation : 

  1. Books are kept one above the other
  2. Book which is inserted first is Taken out at last.(Brown)
  3. Book which is inserted Lastly is served first.(Light Green)

Common Example :
  1. Suppose In function all chairs are placed in Vertical Pile.
  2. There are 100 chairs , then Obviously the topmost chair is removed first.
  3. Topmost chair is kept first and same is removed first .
  4. Bottommost chair though kept first,but removed Lastly
  5. In short Newcomer has given Priority than older .

    Image From :dezeen.com

    Incoming search terms: