07
Dec
Does delete delete the pointer, or the pointed-to-data?
Related Blog Items
- What are the two steps that happen when I say delete p?
- Differences between new, malloc; delete, free
- Do I need to check for NULL before delete?
- Binary Search Trees
- Double Linked List With Out Using Special Head or Tail Node
The pointed-to-data.
The keyword should really be delete_the_thing_pointed_to_by. The same abuse of English occurs when freeing the memory pointed to by a pointer in C: free(p) really means free_the_stuff_pointed_to_by(p).
source:USENET
[tags]delete, memory management[/tags]
Popularity: 5%
You need to log on to convert this article into PDF
Related Blog Items - What are the two steps that happen when I say delete p?
- Differences between new, malloc; delete, free
- Do I need to check for NULL before delete?
- Binary Search Trees
- Double Linked List With Out Using Special Head or Tail Node
Related Blog Items
- What are the two steps that happen when I say delete p?
- Differences between new, malloc; delete, free
- Do I need to check for NULL before delete?
- Binary Search Trees
- Double Linked List With Out Using Special Head or Tail Node
No Comments
No comments yet.