//char carray[]="nihao";
char carray[]={‘a‘,‘b‘,‘c‘,‘d‘,‘\0‘}; printf("array=%s",carray);
c 字符串的结束标志
原文:https://www.cnblogs.com/sea-stream/p/11071161.html