0

Why linked list called self-referencial structure??

26th Feb 2017, 7:19 PM
Mrinal Kanti Ghosh
Mrinal Kanti Ghosh - avatar
2 Respuestas
+ 2
I suppose it's because each element of list contains some data, and a reference, often called a pointer, to the next element in the list.
26th Feb 2017, 9:14 PM
Esmira
Esmira - avatar
+ 1
Well all the nodes in the linked list are defined as the objects of the same class from OOP view and from the same structure from procedural programming point of view.In that case as a current node contains the address of the next immediate node,it is evident that it is referencing or addressing an object of the same structure/class and thus you know now why it is called so
2nd Mar 2017, 2:55 PM
Goutam Bose
Goutam Bose - avatar