answersLogoWhite

0


Best Answer

convert to perfixed to postfixed

User Avatar

Mavis Simonis

Lvl 10
1y ago
This answer is:
User Avatar
More answers
User Avatar

AnswerBot

2d ago

To convert a prefix expression to postfix, first reverse the expression and swap the operands' positions. Then scan the expression from left to right, pushing operands onto a stack and applying operators to the top operands of the stack. Finally, the postfix expression will be the final contents of the stack in reverse order.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How to convert prefix to postfix?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Convert infix to prefix to postfix?

(a + b) * c / ((x - y) * z)


Why parenthesis are never needed in prefix or postfix notation?

Because there is not an "order of operations" in prefix or postfix notation. The order in which you put the numbers and operators is the order in which calculation occurs.


Why you need convert a expression into postfix expression?

You convert an (infix) expression into a postfix expression as part of the process of generating code to evaluate that expression.


Which data structure convert logical to physical address?

Linear data structure is used to convert the logical address to physical address .Stack is used in this and the various conversion such as postfix,prefix and infix notation are come in this


What is prefix expression?

Example: prefix: * 2 + 3 4 infix: 2 * (3+4) postfix: 2 3 4 + *


What is the difference between prefix and postfix increment operator in c plus plus?

Both the prefix and the postfix increment operators increment the operand. The difference is what is the value of the expression during the evaluation of the expression. In the prefix form, the value is already incremented. In the postfix form, it is not. int a = 1; int b = ++a; // both a and b are now equal to 2 int a = 1; int b = a++; // a is equal to 2 and b is equal to 1


Who invented postfix and infix?

infix: old Egyptians/Assirs some thousands year before prefix: Jan Łukasiewicz (Polish Notation) postfix: Burks, Warren, and Wright (Reverse Polish Notation)


Postfix to Infix java?

A postfix incrementation or decrementation is handled by the ++ and -- operators. Postfix specifically refers to adding the operator after the variable name (eg. i++). This will attempt to increase/decrease the data type by 1. It differs from prefix in that it will return the variable before the calculation.Example:int i = 1;System.out.print(i++); //1System.out.print(i); //2


What is the difference between prefix and postfix?

These are additions to words that alter their meaning. A prefix, is added at the beginning of a word, is added and the can by just a single letter 'a'. e.g. politicakl and apolitical or sexxual and asexual. The 'a' means 'not'. A postfix is more correctly named as a 'suffix'. is added at the end of a word. e.g. morn, and 'morning', or 'amend' and 'amended'.


Which data structure is needed to convert infix notations to post fix notations?

stack is the basic data structure needed to convert infix notation to postfix


How do you convert infix to postfix without using data structures?

Without data-structures you cannot even store expressions, let alone convert or evaluate them.


What prefix describes a molecule with ten atom of the same element?

It's not a prefix but a subscripted postfix '10'Example: decane C10H22 with 10 atoms of the same element Carbon (and 22 H's)