c语言中定义一个字符串数组指针可以这样写:// Example program#include <stdio.h>int main(){ char str[] = "abc"; char *p = str; printf("%s\n", str); printf("%s\n", p); return 0;}