#include <stdio.h> int main() { char string_demo[] = "Hello World"; printf("%s\n",string_demo); //在内存中开辟一个字符数组用来存储该字符串常量,然后把开辟出的字符数组的首地址赋给指针p char *p = "linuc C"; printf("%s\n",p); }