J
josh
Hi, if in Java we can create a triangular array like in the following
listing:
int a[][] = new int[2][];
a[0] = new int[3]; // 3 cols
a[1] = new int[4]; // 4 cols
can we assert that it's assimilable at the C array of pointers?
and a non-triangular array like a matrix is assimilable at the C
pointer to array?
How, work the compiler behind the scenes?
Thanks
listing:
int a[][] = new int[2][];
a[0] = new int[3]; // 3 cols
a[1] = new int[4]; // 4 cols
can we assert that it's assimilable at the C array of pointers?
and a non-triangular array like a matrix is assimilable at the C
pointer to array?
How, work the compiler behind the scenes?
Thanks