Output | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Output

Why is the output of this code 16??🤔🤔 Since x=8 x++ should be 9. Then x+=y- - should be 9+7 then 16 will be deducted by 1 because of - - operator to make it 15??

13th Apr 2020, 5:02 PM
Kamalluddeen Usman
Kamalluddeen Usman - avatar
2 Answers
0
only the y variable get deducted by 1(it became 6),but the return value for y-- still 7
13th Apr 2020, 5:17 PM
durian
durian - avatar
0
thanks
13th Apr 2020, 5:28 PM
Kamalluddeen Usman
Kamalluddeen Usman - avatar