One Quick Array Function.

I have an array function I need to write, but I'm pretty much stuck. Here it is:

Finish creating array2 and array3 as 4 x 4, 2-D array of integers. Describe the
differences between array1, array2, and array3.


 
int array1[4][4], *array2[4], **array3;


All I need is a function, not a full program. I'm just not sure what I'm being asked. I don't know what it means by finish creating the arrays.

Any help is appreciated.
Last edited on
If I have understood you correctly you need the following statements

1
2
3
4
int ( *array2 )[4] = new int[4][4];

int **array3 = new int *[4];
for ( int i = 0; i < 4; i++ ) array3[i] = new int[4];
Topic archived. No new replies allowed.