Examveda

Which of the following is a typical declaration of a triply linked list in C?

A.

struct node 
{                                                                           
    int data;                            
    struct node *previous; 
    struct node *top;
};

B.

struct node 
{                                                                           
    int data;
    struct node *next; 
    struct node *top;
};

C.

struct node 
{                                                                           
    int data; 
    struct node *next; 
    struct node *previous;
    struct node *top;
};

D.

struct node 
{                                                                           
    int data;   
    struct node *next; 
    struct node *previous;
};

Answer: Option C


This Question Belongs to Data Structure >> Linked Lists In Data Structures

Join The Discussion

Related Questions on Linked Lists in Data Structures

What is a circular linked list?

A. A list where each node points to the next

B. A list where the last node points to the first node

C. A list where each node points to itself

D. A list where the nodes are in a circle