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-&gt;next)<br></pre>
C. <pre class="prettyprint lang-c">free(ptr1-&gt;next);<br> free(ptr1);<br></pre>
D. All of above
E. None of these
Answer» D. All of above


Discussion

No Comment Found

Related MCQs