How to create array structure with memebers of different size
All,
I need some help creating an array of structure whose memory is allocated at run time. Also the structure has members whose size are different and again memory is allocated at run time. For example.
Code:
typedef struct{
double *a
double *b
}test;
where test is an array of structures determined at run time such that
test[0] would have members as
a[10]
b[20]
test[1] would have members as
a[40]
b[60]
test[2] would have members as
a[15]
b[25]
size of each arrays a and b within the structure are also determined at run time. Would appreciate if someone could help me out here.
Thanks
pk68