Monday, 21 November 2016

Stack Implementation Using C Programming Language

Stack is a very popular data structure used for storing & retrieving data. It is last in first out data structure where data can be inserted & deleted from one end (from top) only.

Real Time Applications Of Stack

(1) Memory Management
(2) Expression Conversion & Evaluation (Prefix, Infix, Postfix)
(3) Backtracking (Finding minimal path, In Games)

Infix To Postfix Conversion & Evaluation
http://www.inicong.com/2016/11/convert-infix-expression-to-postfix.html

Java, .Net, Php etc. technologies provide apis to push, pop elements into stack but in C,C++ we have to implement that libraries.

Using this C Program, you will be able to push, pop, peep, display data onto stack.


(1) Push :- Insert Element at top of the stack.
(2) Pop :- It deleted top most element from the stack.
(3) Peep :- It returns Top Most Element without deleting it.
(4) Display :- It displays stack contents.


You can download program from here also :
http://www.4shared.com/file/AWMYMWSn/1Stack.html


Here is the program.











You can download program from here also :
http://www.4shared.com/file/AWMYMWSn/1Stack.html

No comments:

Post a Comment