Home > Back-end >  An empty input, the output of a fixed value, confused
An empty input, the output of a fixed value, confused

Time:09-22

#include
Int main ()
{
int i;
The scanf (" % 0 d ", & amp; I);
Printf (" % d ", I);
}
Why no matter what the input, the output is 54?

CodePudding user response:

The scanf (" % d ", & amp; I);
Have a try

CodePudding user response:

Stepping into the scanf is open source, see their corresponding source code,

CodePudding user response:

Only after that with 0, enter the input is empty, but why there are results output? The scanf source code has a great influence on it? There are differences in C and C + + result also

CodePudding user response:

With 0 after input to input a 0