|
-
September 12th, 2012, 10:35 PM
#1
Back to basics (Part II) - the delete operator
When we invoke the delete operator, will both the objects (the memory that contains the variables) and the pointer itself be deleted?
For example
0x71233333=> Name : Jack
Phone: 72882222
After the delete would it become
0x00000000=> Name: NULL
Phone: 0
If not, that means we manually reset the value of the pointer to NULL, however, will the memory that stores the pointer be reclaimed?
Thanks
Jack
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|