分析该题目后,运行该程序会出现什么样的结果? #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
知识点
面圈网VIP题库

面圈网VIP题库全新上线,海量真题题库资源。 90大类考试,超10万份考试真题开放下载啦

去下载看看