Given the following:
What is the output?
The expression j += i updates j from 20 to 30 before the division occurs. Dividing 30 by 5 assigns 6 to k, while i remains 10.
j += i
j
k
i
Community Discussion