Multiple Linked List in C

Posted by LuckySlevin on Stack Overflow See other posts from Stack Overflow or by LuckySlevin
Published on 2010-05-10T15:51:23Z Indexed on 2010/05/10 15:54 UTC
Read the original article Hit count: 157

Filed under:
|
|
|

I have a problem about Linked Lists. I already know how to create structures and linked list. But now I have to create arbitrary number of linked list which are also be kept in another structure. Which means :

struct list{int x, struct list *next; };
struct parent{int x, struct list  *head, struct parent *next;}   

And after lists are created when i enter this input for example "123134 linked list should look like :

1 -> 2 -> 3 -> 4

And for example 1 will contain 2->3 list inside of it, 3 will contain 1->4 list inside of it.

I need a starting point and a spark from you. So how can i do this?

© Stack Overflow or respective owner

Related posts about c

    Related posts about linked-list