C same structure different size
问题 My question is related to this one : c define arrays in struct with different sizes However, I do NOT want to use dynamic allocation (embedded target). Problem recap : In C , I want to have two versions of the same structure, each one with a different size for its static arrays. Both the structures will be used by the same functions through pointer parameter. typedef struct { short isLarge; //set 0 at initialization short array[SIZE_A]; //more arrays } doc_t; typedef struct { short isLarge; /