0

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;
}*start;

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

next->marks=5;
next->regno=3456;

will this work?

2
Contributors
3
Replies
17
Views
2 Years
Discussion Span
Last Post by Thomas_25
0

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

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.