Originally Posted by
mikeman
Hey there, new to the boards and pretty new to C.
Working on an assignment dealing with linked lists, and trying to understand them.
Is it possible to store an array in a node for a linked list? Furthermore, is it possible to store several arrays within one node of a linked list?
Since a "node" is really a structure you define yourself (there is no "linklist.h", is there?), yes, you can put whatever you want in it. The only thing you need in the struct to make it function in a linked list is a pointer to another such node:
Code:
struct _node {
char *string;
struct record Record;
int year;
int chessboard[8][8];
char etc[4];
struct _node *next;
};