purpose of dummy header in data structure
Answers
Answered by
30
About Dummy Header:
1. It contains first record of the actual data.
2. To create a circular list when there are no nodes in the list, the front and back must point the dummy node itself, not NULL.
3. Dummy nodes are used in linked data structures to avoid special cases with the start or end of the data structure. The dummy head has no value, but it does have a link that can be followed to get to the real head of the list.
1. It contains first record of the actual data.
2. To create a circular list when there are no nodes in the list, the front and back must point the dummy node itself, not NULL.
3. Dummy nodes are used in linked data structures to avoid special cases with the start or end of the data structure. The dummy head has no value, but it does have a link that can be followed to get to the real head of the list.
Similar questions