I have constant multi-dimensional arrays of different sizes. I would like to pass them to a function. However, I would get the error missing subscript, the sizes of the arrays are different so I can't put the subscript in the array parameter. What is the solution to this problem?
Here is an example code. The actual arrays are bigger.
//ARRAY1
const double ARRAY1[3][2][2] =
{
{
{1.0,1.0},
{1.0,1.0},
}
,
{
{1.0,1.0},
{1.0,1.0},
}
,
{
{1.0,1.0},
{1.0,1.0},
}
}
//ARRAY2
const double ARRAY2[2][2][2] =
{
{
{1.0,1.0},
{1.0,1.0},
}
,
{
{1.0,1.0},
{1.0,1.0},
}
}
//How to declare the parameter?
double SomeFunctionToWorkWithBothArrays(const double arr[][][])
{
}