Why b variable is 11 not 10? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
8th Nov 2018, 7:06 AM
Bircan Kut
Bircan Kut - avatar
4 Answers
0
b = 12 + a-- / ++c - --a; b = 12 + 3/6 - 1 (since a-- = 3 and a reduce to 2, so --a becomes 1, while 3/6 is integer zero.. ) So, b= 12 +0 -1
8th Nov 2018, 9:28 AM
Gaurav Atreya
Gaurav Atreya - avatar
0
Gaurav Atreya But a-- shouldn't implement after = operator implements
8th Nov 2018, 9:58 AM
Bircan Kut
Bircan Kut - avatar
0
No, a-- doesn't implement till the value of a has been used, that is occurrence of a-- not =
8th Nov 2018, 10:00 AM
Gaurav Atreya
Gaurav Atreya - avatar
0
Thanks
8th Nov 2018, 1:25 PM
Bircan Kut
Bircan Kut - avatar