Hi, can you give more details about the Pre fix & Post fix of java with examples.
Details about "Pre Fix & Post Fix"
Collapse
X
-
I'll move your question over to the Java Forum section where it belongs; thisOriginally posted by shammikaHi, can you give more details about the Pre fix & Post fix of java with examples.
Articles section is for informative articles only.
kind regards,
Jos -
You probably recognize this type of expression:
This is called infix - the operators are 'in' the expression, where they belong.Code:a + b * c - (d / g)
Postfix means the operators come after the operands they are meant to work on. The above example in postfix is:
Prefix means the operator comes before the operands it is meant to work on. The above example in prefix is:Code:b c * a + d g / -
Code:- + * b c a / d g
Comment
Comment