I got an assignment where I need to send an array of size N randomly generated numbers to a msg queue, msg queues need to be used with structs but how can I define the size of array in said struct from user input?
struct my_msg {
long int msg_type;
char some_text[];
so to be more specific lets say user enters 7 as the size of the array how do I make it into some_text[7] but after already defining the struct?