question about free() command

Hello, when i use free() command on a pointer pointing to a structure, its value is automaticly changed to NULL or i have to do that manually?

Thank you!
Last edited on
free() releases a previously allocated block of memory to the heap. The pointer is passed by value and doesn't change, but the block of memory pointed to is made for reuse by another part of the program later on.
Topic archived. No new replies allowed.