64,641
社区成员
发帖
与我相关
我的任务
分享
void main()
{
/*example 1
char *str = (char *)malloc(100);
strcpy(str, "hello");
free(str);
if(str !=NULL)
{
strcpy(str, "world");
printf(str);
}*/
//example 2
char *p = NULL;
strcpy(p, "hello");
printf("%s", *p);
}