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

学而优·知识库

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

关闭

前往注册

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