I am passing 2d array to a function, But its giving me error that passing argument 1 of ‘jac’ from incompatible pointer type
this is how I created the array
double t[m+2][n+2];
....
jac(t);
printf("*should print what assigned in jac function %f\n",t[0][0]);
in called function I am doing like this
void jac(double **tnew)
{
tnew[0][0]=tnew[2][1]+tnew[0][1];
}
why its giving me warning that passing argument 1 of ‘jac’ from incompatible pointer type