View Single Post
  #5 (permalink)  
Old October 5th, 2011, 05:22 AM
alexa007
Guest
 
Posts: n/a
Default

1. prefix increment operator denoted by ++ and prefix decrement operator denoted by --
2. The difference between the two is that in the postfix notation, the operator appears after postfix-expression, whereas in the prefix notation, the operator appears before expression, for example x--; denote postfix-decrement operator and--x; denote prefix decrement operator.
3. The prefix increment operator adds one to its operand. This incremented value is used in the expression to get the result of the expression. The postfix operator decrement by one and the decremented result is used in the expression to get the value of the expression.
4. Associativity is the order in which a operator gets executes. Prefix and postfix gets the highest precedence among the operators and the associativity of these is from right to left. The operator gets executed from right to left in an expression.
___________________
Business Intelligence Ireland
Reply With Quote