Answers for "function free memory 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