Inactive Tutor answered 4d
Tutor
New to Wyzant
The issue is that the "zeros" function returns an array, and you are trying to bind an array to a pointer.
typedef struct mystruct {
int m;
//pointer type
int *i;
//pointer type
double *x;
} mystruct;
If you want to keep your definition of y, then update your struct to use arrays
typedef struct mystruct {
int m;
//array
int i[10];
//array
double x[10];
} mystruct;