So i am trying to make a code which lets the user register different medecines. Each medecine is gonna be a struct called medecine. The user can input the name of the medecine which is max 20 letters, the different sizes the medecine comes in, and how many there is of each size. I was thinking of something like this V. When i later want to use functions to store medecine input in a larg array which can hold 1000 medecines, is this gonna work ?
struct medecine
{
char name[WORDLENGTH];
int size[10];
int BalanceOfeachsize[10];
};