#include <string.h>
void testPoint(){
char cc[] = "hello";
char *c = cc;
strcpy(c,"dd");
//如果char *c = "hello";再用strcpy(c,"dd")会出现程序崩溃?不太理解,有谁帮解一下?
}
strcpy函数问题
最新推荐文章于 2020-07-05 11:26:06 发布
#include <string.h>
void testPoint(){
char cc[] = "hello";
char *c = cc;
strcpy(c,"dd");
//如果char *c = "hello";再用strcpy(c,"dd")会出现程序崩溃?不太理解,有谁帮解一下?
}