2
Contributors
3
Replies
4
Views
5 Years
Discussion Span
Last Post by jackmaverick1
0

Memory allocated with new can be de-allocated with delete
Wikipedia Article
One thing to note is that array allocated with new[] must be deallocated with delete[]

int integer = new int;
int* pointer = &integer;
delete pointer;

Edited by jackmaverick1

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.