Output of the following code
Int k = 5, j = 9;
K + =k++ - ++j + k;
S.o.pln("k= " +k);
S.o.pln("j= " +j);
Answers
Answered by
6
Answer:-
Given,
k = 5
j = 9
k += k++ - ++j + k
➡ k = k + k++ - ++j + k
➡ k = 5 + 5 - 10 + 6 (Now, j = 10)
➡ k = 6
Hence,
k = 6
j = 10
Output:-
k = 6
j = 10
Similar questions