Category Archives: stack

infix to postfix conversion of expression code

Infix notation : Infix notation is the common arithmetic and logical notation, in which operator is written between operand.

e.g.
1+2

1+2*3

Postfix notation: Operators are written after their operands.

e.g.
1 2 3 + * 4 /

Some Examples of conversion of infix to postfix expression

Infix Postfix
A * B + C / D 

A * (B + C) / D

A B * C D / + 

A B C + * D /

 

Infix to postfix conversion of expression code in C

 

stack implementation using linked list in c

 

C program to implement stack using linked list.

 

 

 

 

Stack implementation using array in C

Stack implementation using array in C

Stack has following operations :

push // To add value at top of stack

pop // To remove value from top of stack

isstack_empty // To check whether stack is empty or not

isstack_full // To check whether stack is full or not

 

Stack implementation using array in C