Defining elastic/flexible structure in C
I have a task to do and the content of the task is: Please suggest a definition of linked list, which will keep the person's name and age in a flexible structure . Then write the procedure for inserting elements with the given name and age. What exactly is a flexible structure? How to define it? And then how to malloc the size? typedef struct Test { int age; // ? char name[?]; // ? struct Test * next; }Structure; int main(void) { Structure *one = malloc(???); } You are on the right track. However, there is no "flexible structure". You want to use a flexible array member (avail since C99) in a