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

Why this output?

I also had the same question with c++ why do I get '3' as the value of 'z'? can anyone explain? https://code.sololearn.com/cdiPuE103q7L/?ref=app

15th Oct 2017, 3:09 PM
DEF4LT_
DEF4LT_ - avatar
4 Answers
+ 2
i cant open your code
16th Oct 2017, 2:39 AM
Muhamad Daris
Muhamad Daris - avatar
+ 2
y=3+2; z=6-3; z=3 first line x++ = 2 and ++x =3 second line x was increased with ++x and u was use (;) x in second line =3 and x--=3 may be help
16th Oct 2017, 8:28 AM
Muhamad Daris
Muhamad Daris - avatar
+ 1
I get it...thx
16th Oct 2017, 10:10 AM
DEF4LT_
DEF4LT_ - avatar
0
try now
16th Oct 2017, 5:34 AM
DEF4LT_
DEF4LT_ - avatar