[求助]关于指针和const
char *const 与 const char* pc 有什么区别?void f(char* p)
{
char s[] = "Grom";
const char* pc = s;
pc[3] = 'g';
pc = p;
char *const cp = s;
cp[3] = 'a';
cp = p;
const char *const cpc = s;
cpc[3] = 'a';
cpc = p;
}
以上程序哪几行错了?为什么?谢谢对本菜鸟的提点!