struct dataStruct { const char* s; int num; };
struct Final_struct { int n; dataStruct a[]; };
Now the problem occurs when I try to initialize the Final_struct as followed:
const Final_struct Example[]= {
{100, { {"age", 20}, {"iq", 120}, {"bmi",26} } },
{100, { {"age", 36}, {"iq", 145}, {"bmi",22} }}
};
It's a c code, and when I try to compile it gives the compiler error :
Fields of the object can not have arrrays of size 0
Any suggestions?
thank you.