Hello, I am having a hard time wrapping my mind around the multidimensional array concept.
If I have an array declaration of:
double d[][][] = new double [3][][];
How would one explain best what this would hold?
Yeming Hu
Ranch Hand
Joined: May 14, 2007
Posts: 37
posted
0
take array as an object, therefore double[][][] is a reference type whose object holding reference variables to double[][], double[][] is a reference type whose object holding reference variables to double[]. You know how double[] works.
Best Wishes,<br /> Yeming
chaitanya gopal
Greenhorn
Joined: May 22, 2007
Posts: 13
posted
0
double d[][][] = new double [3][][];
here d holds three double[][] arrays.
ex: d[0]=a[][]; d[1]=b[][]; d[2]=c[][];
got it..
chaitanya.
Nik Arora
Ranch Hand
Joined: Apr 26, 2007
Posts: 652
posted
0
Hi Brain, This was discussed earlier. Refer to this LINK