1.

In linked list each node contains a minimum of two fields. One field is data field to store the data second field is?(a) Pointer to character(b) Pointer to integer(c) Pointer to node(d) NodeQuestion is from Singly Linked List Operations in portion Abstract Data Types of Data Structures & Algorithms IThis question was posed to me in class test.

Answer»

Right OPTION is (C) Pointer to NODE

The best I can explain: Each node in a linked list CONTAINS DATA and a pointer (reference) to the next node. Second field contains pointer to node.



Discussion

No Comment Found

Related InterviewSolutions