hi frndz...
the problem is as follows:
i want to create a 2-d array. in every index in that matrix, i want to store an array of integers. moreover the array that i want to store at every index has to be dynamic because its size will keep on increasing.
so if suppose the matrix is a 4x4 matrix as follows.
0........ ......1.................. 2.....................3
0 array[n1] . array[n2] . array[n3] . array[n4]
1 array[b1] . array[b2] . array[b3] . array[b4]
2 array[c1] . array[c2] . array[c3] . array[c4]
3 array[d1] array[d2] . array[d3] . array[d4]
.
the size of these arrays at the indexes are to be decided dynamically at runtime, because the values of n1,n2.....,b1,b2,.......depend upon the size of previous array located at an index just before the current location.
i.e n2 is decided from n1....
n3 is decided from n2...
b2 is decided from b1...
in nutshell, all these arrays wil have a varying length that cannot be decided before or declared static beforehand.
also all the arrays inside the matrix are integer arrays.
how to declare such an array???