1. void getmemory(char *p)
{ p=(char*)mallol(100);
}
void test(void)
{
char * str =null;
getmemory(str);
strcpy(str,”hello,world”);
printf(str);
}
请问运行 Test 函数会有什么样的结果
[主观题]void GetMemory(char *p){p = (char *)malloc(100);}void Test(void) {char *str= NULL;GetMemory(str); strcpy(str, "hello world");printf(str);}请问运行 Test 函数会有什么样的结果?
[主观题]char*getmemory(void){ char p[]=”hello world”;return p;}void test(void){char *str=null;str=Getmemory();printf(str);} 请问运行 Test 函数会有什么样的结果.
[主观题]char*getmemory(void){ char p[]=”hello world”;return p;}void test(void){char *str=null;str=Getmemory();printf(str);} 请问运行 Test 函数会有什么样的结果.
[主观题]char *GetMemory(void){ char p[] = "hello world";returnp; }void Test(void){char *str = NULL;str = GetMemory(); printf(str);}请问运行 Test 函数会有什么样的结果?
[主观题]char *GetMemory(void){ char p[] = "hello world";returnp; }void Test(void){char *str = NULL;str = GetMemory(); printf(str);}请问运行 Test 函数会有什么样的结果?
[主观题]Void GetMemory2(char **p, int num){*p = (char *)malloc(num);}voidTest(void){char *str = NULL;GetMemory(&str, 100);strcpy(str, "hello"); printf(str); }请问运行Test 函数会有什么样的结果?
[单选题]有以下程序void fun1(char *p){ char *q;q=p;while(*q!='/0'){ (*q)++; q++; ) }}main(){ char a[]={"Program"),*p;p=&a[3];fun1(p);printf(" % s/n",a);}程序执行后的输出结果是A.)ProhsbnB.)PrphsbnC.)ProgsbnD.)Program
[单选题]有以下程序: void fun1(char*p) {char*q; q=P; while(*q!='/0') { (*q)++;q++;} } main() {char a[]={"Program"),*p; p=&a[3];funl(p);printf("%s/n",A); } 程序执行后的输出结果是( )。A.ProhsbnB.PrphsbnC.ProgsbnD.Program
[主观题]void setmemory(char **p, int num){ *p=(char *) malloc(num);}void test(void){ char *str=NULL;getmemory(&str,100);strcpy(str,"hello");printf(str);}运行test函数有什么结果?( )
[单选题]有以下程序 void fun 1 (char *p) { char *q; q=p; while(*q!='/0') {(*q)++;q++;} } main() {char a[]={"Program"},*p; p=&a[3];fun1(p);printf("%s/n",a); } 程序执行后的输出结果是______。A.ProhsbnB.PrphsbnC.ProgsbnD.Program