61.4k views
3 votes
)When a linke chain contain nodes that reference both the next node and the previous node it is called a(n)

A. Two way linked chain

B. Multi linked chain

C. Ordinary chain

D. Doubly linked chain

User JohnyFree
by
7.3k points

1 Answer

4 votes

Answer:

The correct answer for the given question is option(D)

Step-by-step explanation:

The doubly linked list or chain contains both the reference next node and the previous node .

following are the structure of doubly linked chain

struct doubly1

{

struct doubly1 * next;

struct doubly1 *prev;

int num;

};

Here the node contain two field "next and prev". The next pointer points the next address of the structure doubly1 and prev pointer points the previous address of the structure doubly1 and num is data field .

User Lindhe
by
7.2k points