C 没有也从来没有原生字符串类型。按照惯例,该语言使用数组char以空字符终止,即'\0'。语言标准库中的函数和宏提供对空终止字符数组的支持,例如,strlen http://pubs.opengroup.org/onlinepubs/009695399/functions/strlen.html迭代数组char直到遇到一个'\0'性格和strcpy http://pubs.opengroup.org/onlinepubs/009695399/functions/strcpy.html从源字符串中复制,直到遇到'\0'.
C 中以 null 结尾的字符串的使用反映了这样一个事实:C 的目的只是比汇编语言高级一点。当时已经直接支持零终止字符串PDP-10 和 PDP-11 的汇编语言 http://en.wikipedia.org/wiki/Null-terminated_string#History.