cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
question about free() command
question about free() command
Feb 13, 2009 at 9:49am UTC
gevat
(1)
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
Feb 13, 2009 at 9:51am UTC
Feb 13, 2009 at 11:35am UTC
kbw
(9488)
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.