0

While working on increment/decrement expressions there is difference between the outputs if the compiler is different?Y it is so

9th Jun 2018, 5:30 PM
Deepak Bhalode
Deepak Bhalode - avatar
6 odpowiedzi
0
What I think you should do about this is to learn to not make this mess and if someone else does it, track them down and ask how can they sleep at night after what they've done.
9th Jun 2018, 5:54 PM
BlazingMagpie
BlazingMagpie - avatar
+ 1
I m working on c
9th Jun 2018, 5:37 PM
Deepak Bhalode
Deepak Bhalode - avatar
+ 1
I have no idea how ubuntu gets 7, but turbo probably first does all of ++i and then adds them up.
9th Jun 2018, 5:50 PM
BlazingMagpie
BlazingMagpie - avatar
0
Which language, which compilers? It shouldn't be happening but I just want to be sure.
9th Jun 2018, 5:37 PM
BlazingMagpie
BlazingMagpie - avatar
0
in Ubuntu if i=0; z= ++I + ++I ++I ..as a result z =7 but in turbo c7 the output dt is value of z is 9...why it is so ? any conceptual reason is there which I want to knw? in short how the compiler is evaluating the result ?
9th Jun 2018, 5:39 PM
Deepak Bhalode
Deepak Bhalode - avatar
0
ok..ty I knw abt turbo nd working too...to make my concepts strong
9th Jun 2018, 5:51 PM
Deepak Bhalode
Deepak Bhalode - avatar