destroy heap c algorithm code example Example: delete heap array c int* t = new int[10](); delete [] t;