问题详情
答题翼
>
问答
>
求职面试
> 正文
目录:
标题
|
题干
|
答案
|
搜索
|
相关
char *GetMemory(void){ char p[] = "hello world";return p; }void Test(void){char *str =
char *GetMemory(void){ char p[] = "hello world";return
p; }void Test(void){char *str = NULL;str = GetMemory(); printf(str);}请问运行 Tes
t 函数会有什么样的结果?
参考答案
您可能感兴趣的试题
有关内存的思考题 1. void getmemory(char *p) { p=(char*)mallol(100); } void test(void)
答案解析
char*getmemory(void) { char p[]=”hello world”; return p; } void test(void) { char *str
答案解析
char*getmemory(void) { char p[]=”hello world”; return p; } void test(void) { char *str
答案解析
void GetMemory(char *p){p = (char *)malloc(100);}void Test(void) {char *str =NULL;GetMe
答案解析
char *GetMemory(void){ char p[] = "hello world";return p; }void Test(void){char *str =
答案解析
Void GetMemory2(char **p, int num){*p = (char *)malloc(num);}void Test(void){char *str
答案解析
Void GetMemory2(char **p, int num){*p = (char *)malloc(num);}void Test(void){char *str
答案解析