分析该题目后,运行该程序会出现什么样的结果? #include "cstd...
发布于 2022-03-03 17:24:49
分析该题目后,运行该程序会出现什么样的结果?
#include "cstdlib" #include"iostream" using namespace std void GetMemory(char* p) { p = (char*)malloc(100) } void Test1(void) { char* str = NULL GetMemory(str) strcpy(str,"helloword") printf(str) }
关注者
0
被浏览
16