int *x = new int[5]();
With the above mentality, how should the code be written for a 2-dimensional array - int[][]?
int[][]
i
You can do the initializations separately:
int **x = new int*[5]; for(unsigned int i = 0; i < 5; i++) x[i] = new int[5];