int *x = new int[5]();
With the above mentality, how should the code be written for a 2-dimensional array - int[][]?
int[][]
i
This is how you do it:
int (*x)[5] = new int[7][5] ;
I made the two dimensions different so that you can see which one you have to use on the lhs.