Saved Bookmarks
| 1. |
Illustrate the use of “self-referential structures” with the help of an example. |
|
Answer» A self-referential structure is used to create data structures like linked lists, stacks, etc. Following is an example of this kind of structure where pointer variable *next is of datatype ‘node’ which is the structure type itself: |
|