

MCQOPTIONS
Saved Bookmarks
1. |
Which of the following should be used for freeing the memory allocated in the following C code? |
A. | free(ptr1); |
B. | <pre class="prettyprint lang-c">free(ptr1);<br> free(ptr1->next)<br></pre> |
C. | <pre class="prettyprint lang-c">free(ptr1->next);<br> free(ptr1);<br></pre> |
D. | All of above |
E. | None of these |
Answer» D. All of above | |