J
jinmen
Unregistered / Unconfirmed
GUEST, unregistred user!
char *GetMemory(void)
{
char p[] = "hello world";
return p;
}
void Test(void)
{
char *str = NULL;
str = GetMemory();
printf(str);
}
int main()
{
Test();
}
大家试验一下结果,想不通啊?
{
char p[] = "hello world";
return p;
}
void Test(void)
{
char *str = NULL;
str = GetMemory();
printf(str);
}
int main()
{
Test();
}
大家试验一下结果,想不通啊?