Q215
Which of the following should be used for freeing the memory allocated in the following C code? #include struct p struct p *next; int x; ; int main() struct p *p1 = (struct p*)malloc(sizeof(struct p)); p1->x = 1; p1->next = (struct p*)malloc(sizeof(struct p)); return 0;
D.
all of the mentioned
Answer: Option B
Solution
Answer: Option B
No explanation is given for this question Let's Discuss on Board