Answers for "how does the free function know how much memory it needs to free in c"

C
0

how to free memory in c

int *example = NULL; //create pointer
example = malloc(sizeof(int)); //allocate memory
free(example); //deallocate memory
Posted by: Guest on April-14-2020

Code answers related to "C"

Browse Popular Code Answers by Language