If we have to create a single dimension array on heap, and then deallocate the memory assigned to it, the code would be somthing like this...
Similarly I need to create a 2D array on heap, and deallocate the memory using double pointers. Please help me out.Code:char *array=new char[50]; //.... delete array;