code:
public class Myclass {
public static void main(
String args[]) {
int k = 1;
int i = ++k + k++ + +k;
System.out.println(i);
}
}
what would be the value of i here? if u can please explain the expression(++k + k++ + +k), it would be helpful a lot.(AFAIK, the postfix unary ops have higher precedence then the prefix unary operators. So i think first of all k++ will be evaluated. Am i right?)
thanx.
ashok.