运行下面这段代码,会出现的情况是:()
void GetMemory(char *p) { p = (char *)malloc(100); }
void Test(void) {
char *str = NULL;
GetMemory(str);
strcpy(str, "hello world");
printf(str);
}
牛客-007









