Home > Back-end >  The scanf function of C language
The scanf function of C language

Time:06-06

Why are the middle by several back return not to go out?
Why lose again into a string of characters will be the result?
Why is the third result is not zero, a negative number?
Beginner rookie consult

CodePudding user response:

The third is entered should be no success

CodePudding user response:

But I'm still a little don't understand the result is a negative number, this number is which come of

CodePudding user response:

C memory area is a stack space, some compilers will CC of all initialized to hex, this apparent int is a big negative, are best when they are generally define a variable initialization

CodePudding user response:

I'm wrong and z, float situation is also similar

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