char c[] = { 'a', 'b', 'c', '\0' }; char* cp = c; printf(cp); 所有的char类型都以'\0'结尾 转载于:https://www.cnblogs.com/hont/p/4191727.html