Hi,
I am working on some C code.
There is a function like this;
void Get(double x_la[],
double y_la[],
double z_la[])
in the function body, for some other reasons I create;
double (*la)[3];
As far as I understood, x_la, y_la and z_la are pointers of the type double.
I need to "connect" the pointers involved in "la" wiht the previous ones, so I thought trying;
la[0]=x_la;
la[1]=y_la;
la[2]=z_la;
but during compilation with gnu compiler I get the error;
error: incompatible types in assignment of 'double*' to 'double [3]'
What I am doing wrong? Otherwise, how could do it well?
Thanks
P.D. Is it exactly the same to declare
double y_la[]
or
double *y_la
?