From what I know, declaring a dynamic array is:
int *array = new int[x];
My question is, how can I declare a dynamic 2D array?
For example