Question: 8. What is the result of Test(void)? void GetMemory(char p) ( } void Test(void) ( } p = (char*)malloc(100); char *str = NULL; GetMemory(str);
8. What is the result of Test(void)? void GetMemory(char "p) ( } void Test(void) ( } p = (char*)malloc(100); char *str = NULL; GetMemory(str); strcpy(str. "hello world"); printf(str); 9. What is the result of Test(void)? char "GetMemory(void) ( } char p[] = "hello world"; return p ) void Test(void) ( char "str= NULL; str = GetMemory(): printf(str);
Step by Step Solution
There are 3 Steps involved in it
It appears that there are some syntax errors and inconsistencies in the provided code snippets Lets ... View full answer
Get step-by-step solutions from verified subject matter experts
