int **pArr=new int*[5]; for(int k=0;k<5;k++) pArr[k] = new int[5]; for(i=0;i<5;i++) delete []pArr[i]; delete []pArr;