44. What will be the output of the following code ?
int k = 5, j= 9;
k+= k + + - ++j+k;
System.out.println("k =" + k);
System.out.println("j = " + j);
Answers
Answered by
1
Answer:
k=0
j=10
Explanation:
k will be 0 because when you add the value of k with k, at first the value doesn't increase as ++ is given after k.
The value of j will increase at once as ++ sign is used before j.
Similar questions