Assume that i, j and k are integer variables and their values are 8, 5 and 0 respectively

1.6 Assume that i, j and k are integer variables and their values are 8, 5 and 0 respectively.
What will be the values of variables i and k after executing the following expressions?
k = ( j > 5) ? ( i < 5) ? i-j: j-i: k-j;
i -= (k) ? (i) ? (j): (i): (k);
A) -3 and 3
B) 3 and -5
C) 3 and -3
D) -5 and 3


Leave a Reply