Question: Match each program with the most accurate description of it. char *p = malloc(3*sizeof(char)); free(p); char *p; free(p); char **p = NULL; free(p); char *p


Match each program with the most accurate description of it. char *p = malloc(3*sizeof(char)); free(p); char *p; free(p); char **p = NULL; free(p); char *p = malloc(3*sizeof(char)); free(p); free(p); int x; free(x); int x; free(&x); char *p = malloc(3*sizeof(char)); p = NULL; [ Choose [Choose ] program runs fine; no memory leaks compile error: wrong argument type potential runtime error: not supposed to free an unknown address certain runtime error: cannot free address 0 (NULL) certain runtime error: cannot free local variables certain runtime error: not supposed to free an address that was already freed runs but has a memory leak [Choose] [Choose] [Choose]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
