char *s="";
strcpy(s,"hello");
//return error bcoz s is not malloc
char *s=malloc(1);
strcpy(s,"hello");
//OK, strcpy or strcat will realloc the string, if the source len is shortter than dest, it will cut the dest size
char *s="";
strcpy(s,"hello");
//return error bcoz s is not malloc
char *s=malloc(1);
strcpy(s,"hello");
//OK, strcpy or strcat will realloc the string, if the source len is shortter than dest, it will cut the dest size