recategorized by
716 views

1 Answer

0 votes
0 votes

 

To convert prefix to postfix –

  1. Read input from right to left
  2. If(operand) push onto stack
  3. If (operator) pop operand 2, pop operand 1
  4. Write expression in this order operand 1 operand 2 operator 
  5. Push above expression onto the stack.
  6. Repeat the above steps until end of prefix expression.


 

Related questions

0 votes
0 votes
1 answer
2
akash28 asked Feb 23, 2023
792 views
Convert the following infix expression to postfix and prefixA^B^C^D
1 votes
1 votes
0 answers
4
PEKKA asked Nov 10, 2016
1,288 views
Conver the following infix to Postfix and Prefix $log ( 3 ! )^ {log4} *log log ((6/7)*4+x)!$$ sin 2x cos (3x+4) $ Please use stack method to solve . Diagram would be app...