Skip to content
IsaacShelton edited this page Mar 21, 2022 · 1 revision

Delete

One way to dynamically deallocate memory, is using delete followed by a pointer value.

delete my_pointer

delete can only be used as a statement

delete vs free()

delete and free() are identical

Clone this wiki locally