c++创建一个char数组

char c[] = { 'a', 'b', 'c', '' };
char* cp = c;
printf(cp);

所有的char类型都以''结尾

原文地址:https://www.cnblogs.com/hont/p/4191727.html