单选题

下面程序的输出结果是(    &n...

发布于 2022-03-03 14:08:08

下面程序的输出结果是(      )
#include <stdio.h>
#include <stdlib.h>
void MallocMem(char* pc)
{
pc = (char*) malloc (100)

return
}

int main()
{ 
char *str=NULL

MallocMem(str)
strcpy(str,"hello ")
strcat(str+2, "world")

printf("%s",str)

return 0 
}



登录后免费查看答案
关注者
0
被浏览
87
知识点
面圈网VIP题库

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

去下载看看