previous | start | next

Deallocating Dynamic Memory (Syntax 10.4 delete Expression)

Syntax 10.4 : delete Expression

delete pointer_expression
Example:
delete boss;
Purpose: Deallocate a value that is stored on the heap and allow the memory to be reallocated.


previous | start | next