Is this legal to do? Can you assign ptr to something after it has been freed? int * ptr = (int*) malloc(sizeof(int)); free(ptr); ptr = (int *) malloc(sizeof(int));
from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot
Reassigning to a pointer variable after freeing it – stackoverflow.com
Tags:
ptr int