I have one structure that contains pointer to another structure Node. This pointer is a front pointer to the struct Linked List. So, I am building my link list and each time I insert node I create separate structure and link in to other LL nodes.
Question: do I need to allocate memory for each node in LL? Meaning using malloc such as
*pointer_to_struct = (structAlias *)malloc(sizeof(structAlias));
and then to initialize its members.
Or I simply create structure and give values to it's members (members are void * and structAlias *next) without memory allocating for each struct?