Hi,

Can someone tell me how to generate general "n dimensional arrays"?. (i.e) I am given the number of dimensions and the length along each dimension as arguments to a function , I need to generate such an array in that function. All I can tell about the number of dimensions before hand is it will be less than 20. (Assume the lengtth along dimensions are such that the number of elements don't go beyond memory).

Thanks,

Harish