Why output is differnt of a C language code. Int a,b,c; a= 4 b=2 c=3 c= --a - ++b + c++ ;. Outpt c=4 in dos and ubunt c=3 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why output is differnt of a C language code. Int a,b,c; a= 4 b=2 c=3 c= --a - ++b + c++ ;. Outpt c=4 in dos and ubunt c=3

c language

17th Sep 2017, 6:00 PM
Praveen Patil
Praveen Patil - avatar
3 Answers
0
I think may be it's due to change in compiler coz dos output is according to the calculation from left to right and in ubunt compiler is calculating from right to left.
17th Sep 2017, 6:32 PM
kanishka
kanishka - avatar
0
so finally what is the working of ubuntu compiler
18th Sep 2017, 5:09 AM
Praveen Patil
Praveen Patil - avatar
- 1
answer is simple don't use dos that wss 20 years old thing where you supposed to use it
17th Sep 2017, 7:25 PM
Prince Gupta
Prince Gupta - avatar