Question: using java 16) Create a Circular doubly linked list using only two variables: head and current. Traverse through the list. void printList (struct Node *head)
16) Create a Circular doubly linked list using only two variables: head and current. Traverse through the list. void printList (struct Node *head) struct Node *temp = head; if (head != NULL), do printf("%d ", temp->data); temp = temp->next; while (temp != head); 16) Create a Circular doubly linked list using only two variables: head and current. Traverse through the list. void printList (struct Node *head) struct Node *temp = head; if (head != NULL), do printf("%d ", temp->data); temp = temp->next; while (temp != head)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
