会员中心
网站首页
问答
问题热点
当前位置:
答题翼
>
问答
>
求职面试
> 正文
目录:
标题
|
题干
|
答案
|
搜索
|
相关
问题
void GetMemory(char *p){p = (char *)malloc(100);}void Test(void) {char *str =NULL;GetMe
void GetMemory(char *p){p = (char *)malloc(100);}void Test(void) {char *str
= NULL;GetMemory(str); strcpy(str, "hello world");printf(str);}请问运行 Test 函数
会有什么样的结果?
参考答案
您可能感兴趣的试题
暂无相关推荐
最新题目
在 C++ 程序中调用被 C 编译器编译后的函数,为什么要.....
在 C++ 程序中调用被 C 编译器编译后的函数,为什么要.....
const 有什么用途?(请至少说明两种)..
const 有什么用途?(请至少说明两种)..
#include 和 #include “filename.h” 有什么区别?..
#include 和 #include “filename.h” 有什么区别?..