I wanna know how would you create the type definition structure for a circularly double-linked list?
I wanna know how would you create the type definition structure for a circularly double-linked list?
The same way you create any double linked list.Originally posted by NavyBlue
I wanna know how would you create the type definition structure for a circularly double-linked list?
Quzah.Code:struct node { struct node *prev, *next; };
Hope is the first step on the road to disappointment.
You can point a the pointer members of quzahs pointers to any data, including itself or its parents.