代码语言:javascript复制
char s[10] = "Hello"; // 剩余全用0填充
char s[10] = {'H','e','l','l','o','char s[10] = "Hello"; // 剩余全用0填充
char s[10] = {'H','e','l','l','o','