#include <stdio.h>int main(){ char *p="breadfruit"; char *p1; p1=p; *(p1+3)='b'; printf("%s\n",p); return 0;}这程序什么地方不对?还有指针输出为什么用p而不是*p?如果把 char *p="breadfruit";改成char p[]="breadfruit";好像就可以了,为什么呢?
第五十六集 指针指向字符串