I have this 2d dynamic array and I want to pass it to a function, How would I go about doing that
int ** board;
board = new int*[boardsize];
Small code for creation and passing a dynamic double dimensional array to any function. `
void DDArray(int **a,int x,int y)
{
int i,j;
for(i=0;i<3;i++)
{
for(j=0;j<5;j++)
{
cout<>arr[i][j];
}
}
DDArray(arr,r,c);
}
`