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

学而优·知识库

首 页
Void GetMemory2(char **p, int num){*p = (char *)malloc(num);}void Test(void){char *str
Test(void){char *str = NULL;GetMemory(&str, 100);strcpy(str, "hello"); printf(str); }请问
运行Test 函数会有什么样的结果?
参考答案

关闭

前往注册

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