int **arr = new int[NoOfRows]int* [NoOfRows]
for(int i = 0; i<NoOfRows; i++)
arr[i] = new int[noOfColumn];
This is the good way to declare the 2D array in c++ using new Here NoOfRow is showing that how many rows you want ans noOfColumn is showing how many column you want