make a middle node of doubly linklist to the top of the list
Answer / hussein
middle->prev->next = middle->next;
middle->next->prev = middle->prev;
// Now make the middle as head.
middle->prev = NULL;
middle->next = head;
head->prev = middle;
head = middle;
| Is This Answer Correct ? | 2 Yes | 0 No |
What is namespace std; and what is consists of?
What is expression parser in c++
What is time_t c++?
Which operator cannot be overloaded c++?
Can constructor be static in c++?
How to declaring variables in c++?
Describe private, protected and public?
What is the header file for setw?
What is nested class in c++?
Can turbo c++ run c program?
What is the use of default constructor?
Define a pdb file.