1.NUL字节是字符串终止符,但它本身并不是字符串的一部分,所以字符串的长度并不包括NUL字节。
2.size_t这个类型是在头文件stddef.h中定义的,返回长度。
3.连接字符串:strcat
strcpy(message,"hello"); strcat(message,customer_name); strcat(message,",how are you?");
hello,how are you?
strcat(strcpy(dat,a),b);
ab
4.字符串比较(字典比较):比较ASCII码大小 strcmp
5.NUL相当于‘