public class I {
public static void main(String args[])
{
int i=0,j=1,k=2;
i=i++ - --j + ++k;
System.out.println("\ni : "+i+"\nj : "+j+"\nk : "+k);
}
}
Can anyone please explain to me Why the above code gives output :
i : 3
j : 0
k : 3
Instead of giving the output :
i : 4
j : 0
k : 3
?
Therefore: i : 3.