Hi all,

can i store multiple data items inside a doubly linked list?

is this valid?

struct node
    int marks;
    int regno;
    struct node *next;
    struct node *prev;

If this is valid, how can i assign values to the individual data items?


will this work?

or using a class or struct to bind the different data members would be ideal?

Sure, it will work. If next is not null that is...