Solved problem: The number of elements in the character array
Problem:
未解决的问题:字符数组中元素的个数-CSDN博客
Solution:
Add '\0' at the end of the character array
More detailed content can be found in the link below.
Sizeof and Length of character array-CSDN博客