问题
-
void setmemory(char **p, int num) { *p=(char *) malloc(num);} void test(void) { ch
-
char str[ ]= "Hello"; char *p=str; int n=10; sizeof(str)=() sizeof(p)=() siz
-
char str[ ]= "Hello"; char *p=str; int n=10; sizeof(str)=() sizeof(p)=() siz
-
void setmemory(char **p, int num) { *p=(char *) malloc(num);}
-
void setmemory(char **p, int num) { *p=(char *) malloc(num);}
-
已有定义:int *p;,请写出完整的语句,利用malloc函数使p指向一个整型的动态存储单元