A node can reference more than one data element.

Skill/Topic: Linked List
A) True
B) False
Explanation: Yes, a node can reference more than one data element if the current data element of the node is a pointer to a group of data such as an instance of a class, a structure, or an array.

Showing Answers 1 - 1 of 1 Answers

samiksc

  • Jan 20th, 2006
 

Yes, a node itself can contain as many data elements as it needs and it can also reference other data elements. Following is an example of a complex node strcuture in a linked list

struct linkList

{

struct empNode

{

string empName;

long empNo;

struct empSal *salPtr;

} node;

linkList *nextNode;

}

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions