C program for all infix and postfix operation
04:271. infix into its postfix form
2. infix into its prefix form
3. Evaluation of postfix expression
4. Evaluation of prefix expression
operators supported '+,-,*,/,%,^,(,)
operands supported -- all single character operands
*/
output :>
Enter an infix expression : a+b*c
Postfix : abc*+
prefix: +a*bc
Prefix Evaluation :
Enter the value of c : 12
Enter the value of b : 24
Enter the value of a : 10
value of expression = 298
Postfix evaluation :
Enter the value of a : 2
Enter the value of b : 3
Enter the value of c : 4
value of expression = 14
0 comments: