// To deallocate a dynamic array, use this form: delete [] name_of_pointer; // Example: int * array = new int[40]; // dynamic array delete [] array; // deallocates the array