Que : 1 . Consider the following statements,
int i=4, j=3, k=0;
k = ++i - - -j + i++ - - -j + j++;
What will be the values of i, j and k after the statement. (Dec-2004).
Option 3 is Correct Answer.
Value of i = 4; its increment twice so it become 6.
Value of j = 3; 2 time decrement & 1 time increment so it becomes : 2.
value of k=0;
k= 5 - 2 + 5 - 1+ 2