I am wondering why I keep getting error: flexible array member not at end of struct error when I call malloc. I have a struct with a variable length array, and
error: flexible array member not at end of struct
typedef struct { size_t N; double data[]; int label[]; } s_col;
You can't have flexible array member (double data[]) in the middle. Consider hardcoded array size or double *data
double data[]
double *data