// Is there any way to pass 2D dynamic array (pointer) to a function that has 3D dynamic array as parameter?
Just apply an ampersand at the pointer of the "previous dimesions" :) :
void func(double*** s,
int iSlotCount,
int iRowCount,
int iColCount)
{
}
void main()
{
double** s = new double*[10];
for (int i = 0; i < 10; i++) {
s[i] = new double[10];
}
func(&s, 1, 10, 10);
for (i = 0; i < 10; i++) {
delete[] s[i];
}
delete[] s;
}