OceanDesigner
Programmer
I think this should be simple, but I cannot figure it out. I have defined a 2-D array in my main routine as follows:
double X[9][2];
I am trying to pass its pointer to a subroutine so that I can directly modify the variable within the subroutine. The call to the routine is:
var = Fn(&X);
The function prototype is:
Fn(double *A);
No matter what combination of * and & I use, I get an error that the dimensions are not specified correctly in the subroutine Fn. I would really appreciate any help I can get on this.
Jeff
double X[9][2];
I am trying to pass its pointer to a subroutine so that I can directly modify the variable within the subroutine. The call to the routine is:
var = Fn(&X);
The function prototype is:
Fn(double *A);
No matter what combination of * and & I use, I get an error that the dimensions are not specified correctly in the subroutine Fn. I would really appreciate any help I can get on this.
Jeff