Hi there.
I want to define a struct which has 2 pointers which point to diferent "things". I wanna have a linked list where each node is the head of a separate linked list. something like an excel sheet where you can dynamically resize the number of rows and columns, but with the exception that each "row" can have diferent number of columns
i tried something like this but it doesn't work...Code:[floor1]->room101->NULL v [floor2]->NULL v [floor3]->room301->room302->room303->NULL v [floor4]->room401->room402->NULL v NULL
Code:struct node1 { int roomnumber; struct node1 *nextroom; } typedef struct node2 { int floornumber; struct node1 room; struct node2 *nextfloor; } floor;