answersLogoWhite

0

I don't know what you mean with "conversion". Prefix means the "++" or "--" is in front of the variable:

++x;

Post-fix means it is after the variable:

x++;

The examples do the same, but if the "++" or "--" is part of a larger expression, prefix will be evaluated before the remaining expression; postfix after:

a = 5;
b = ++a; // First increment a, then assign to b - b will be 6

a = 5;
b = a++; // First assign to b, then increment - b will be 5

----

What they (probably) mean is converting from '+ * 5 3 1' to '5 3 * 1 +'

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

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.


Convert infix to prefix to postfix?

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


What is prefix expression?

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


How to convert prefix to postfix?

convert to perfixed to postfixed


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


What is the vhdl code for binary to hex convertion?

vhdl code for binary to Hexadecimal ?


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.


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'.


What is a 'post fix expression' in java programming?

Postfix expressions are expressions where the operator is at the end of the expression. These include the "++" (increment) and "--" (decrement) operators. Most Java expressions use in-fix notation (e.g. "a + b") but the increment and decrement operators can be postfix ("e.g. "a++" to increment variable a) or even prefix (e.g. "++a").


What is the prefix word for code?

decode