I am trying to implement something that requires a structure like this:
struct abc
{
int size;
struct abc *links[size];
}
Here, I want size
to change at runtime, not just merely be different for each instance of abc
, and instances of abc
have varying number of links depending on the program. How do I create/manage/allocate memory for such a data structure? Is it even possible in C?