| 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函数会有什么样的结果? 答: | 
| Void GetMemory2(char **p, int num) { *p
  = (char *)malloc(num); } void Test(void) { char *str =
  NULL; GetMemory(&str,
  100); strcpy(str,
  "hello");    printf(str);     } 请问运行Test函数会有什么样的结果? 答: | void Test(void) { char
  *str = (char *) malloc(100);     strcpy(str, “hello”);     free(str);           if(str != NULL)     {       strcpy(str, “world”);  printf(str); } } 请问运行Test函数会有什么样的结果? 答: | 
分析这个问题?
											    

 
											





 
	    





