Answers for "proper way to free memory 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 "proper way to free memory in c"

Code answers related to "C"

Browse Popular Code Answers by Language