CodePudding user response:
This is the character in the difference between array andString in the definition as well as keyboard input, and string function operation will silently in tail added 0
Character array does not do that, it was more of an emphasis a one character at a time, 0 also is a kind of character, the array can put among several characters of one or more 0
Your code behind put b content in a later, is to add a 0 in the tail, because here is a character array
Do you have the possibility of crossing the line, the code be handled with care
CodePudding user response:
I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10581430.htmlI hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10768339.html