char *GetMemory( void ) { char p[] = "hello world"; return p; } void Test( void ) { char *str = NULL; str = GetMemory(); printf( str ); }
char p[] = "hello world"; return p;
扫描二维码,关注牛客网
下载牛客APP,随时随地刷题