[Solved] Delete a pointer with a pointer to that pointer
You just need to delete the array referenced by del: delete[] del; You are already deleting the arrays referenced by hello and bye: delete[] * del; delete[] * (del + 1); Though this would be more idiomatic: delete[] del[0]; delete[] del[1]; Or even better, avoid using new and delete altogether, taking advantage of modern C++ … Read more