免费注册 手机版 网站地图 小工具

学而优·知识库

首 页
void setmemory(char **p, int num) { *p=(char *) malloc(num);} void test(void) { ch
void setmemory(char **p, int num)
{ *p=(char *) malloc(num);}
void test(void)
{ char *str=NULL;
getmemory(&str,100);
strcpy(str,"hello");
printf(str);
}
运行test函数有什么结果?()
参考答案

关闭

前往注册

我已注册,登录账号 继续查看答案