J
James
What's the best way of dynamically allocating a multidim array from the
following:
int **a = new int*[size];
a[0] = new int[size];
.... and so on
or:
int (*a)[10] = new int[10][10];
by the way, how do we pass arrays delcared by the second way to
functions? What really is the difference between (*a)[] and *a[]..
actually i kind of understand the difference but it doesn't hit me that
well.. I can't interpret what (*a)[] really means. Thanks!
James
following:
int **a = new int*[size];
a[0] = new int[size];
.... and so on
or:
int (*a)[10] = new int[10][10];
by the way, how do we pass arrays delcared by the second way to
functions? What really is the difference between (*a)[] and *a[]..
actually i kind of understand the difference but it doesn't hit me that
well.. I can't interpret what (*a)[] really means. Thanks!
James