[C] Which function frees the memory of a passed pointer?
Answer
void free(void* p); // declared in stdlib.h
Question
[C] Which function frees the memory of a passed pointer?
Answer
?
Question
[C] Which function frees the memory of a passed pointer?
Answer
void free(void* p); // declared in stdlib.h
If you want to change selection, open original toplevel document below and click on "Move attachment"
Parent (intermediate) annotation
Open it (malloc) not automatically freed ➜ Programmer must take care to free memory Program may run out of memory when repeated allocations are not freed Memory management is source of many errors in C <span>void free(void* p); // declared in stdlib.h Frees memory of passed pointer <span>