Home > Back-end >  Beginner C
Beginner C

Time:06-03

Int a=0, b=10;
A=(a + a + b) + (+ a + b) + (a + a + b);
Printf (" % d % d, a, b);
Why the output is 37, 13
The big solution

CodePudding user response:

This is not a should be equal to 36
Using vc6.0

CodePudding user response:

Not 36, 13?

CodePudding user response:

This has to do with the compiler, some compilers may even add b three times since the first and then to get the value of the expression, b is 13, and then prints out
39 13
With this meaningless, don't write the code,,,

CodePudding user response:

It is a school presentation on the topic of the computer output is 37, 13
Our own count is 36, 13

CodePudding user response:

I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10581430.html
I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10768339.html
  • Related