一个C语言问题
char *GetMemory(void) {
char p[] = "hello world";
return p;
}
void Test(void)
{
char *str = NULL;
str = GetMemory();
printf(str);
}
请问运行 Test函数会有什么样的结果?
2012-02-25 15:15
2012-02-25 15:48
2012-02-25 15:51
2012-02-25 16:31