11、字符串末位\0问题定义字符串有多种方式,下面将具体说明:1)末尾自动加上\0 char str1[] = "hello"; char str2[10] = "hello"; char *str3 = "hello"; 2)末尾不自动加上\0 char str5[] = {'h', 'e', 'l', 'l', 'o'}; 12、strlen 和 sizeof 作用和区别strlen和sizeof都可以用来计算变量所占内存大小。strlen专门用来计算字符串大小,且其长度不包括末尾的'\0',计算结果是字符串的有效字符长度。而si...