answersLogoWhite

0

A list is data type which implements a linear data sequence container object with elements that are allocated non-contiguously. To navigate a list, we use a node class. A node refers to an element but also refers to the next and previous nodes in the sequence. A simple node may be defined as follows:

template<typename T>

struct node {

T* data; // link to an element (of some type T)

node* next; // link to next node

node* prev; // link to previous node

};

User Avatar

Wiki User

7y ago

What else can I help you with?