Re: [algogeeks] c++ multi dimensional arrays

2011-08-16 Thread pacific :-)
In memory arrays are stored in row major ordering.If you dont provide the column size then the system cannot make any access to any of the location in the array. when you actually look for the value at a[4][2] what the system does is that it computes the location as (4 * column_size + 2 ) * (int s

[algogeeks] c++ multi dimensional arrays

2011-08-16 Thread priya ramesh
Why should the column size be mandatorily passed to a function which expects a multi dimensional array int arr (int marray[][5], int rows); int arr (int marray[][], int rows, int cols); 1st is valid whereas second is invalid. why?? -- You received this message because you are subscribed to the