Lets say i have 3 lists : list1,list2,list3.
Their struct of each element of those lists :
Code:
struct node {
char value[20];
struct node * next ;
int occurs;
};
Code:
typedefstruct node Node;
typedefNode*List;
but i dont think it matters.
I want to create a new list but every element of it has to be each of those 3 lists.My new struct for this matter is that(its correct):
Code:
typedefstruct listoflists{
Listlist;
struct listoflists*next;
}Nested;
My new function to make the list :
Code:
void createlistoflists(Nested**LIST,List list1,List list2,List list3){
if(*LIST==NULL){
*LIST=listab;
}
else
So im not sure if the begging is even correct but how will i fill it(and correct) in order to achieve the list of lists?