•We
ask for memory on the heap with the new command (in old C it
was malloc).
•We
return memory to the heap with the delete command
(in old C it was free).
•Syntax
for new and delete:
–type*
variable_name = new type;
–delete variable_name;
–or
–delete [] variable_name;
// If deleting an array