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 the use of setprecision in c++?
What happens when the extern "c" char func (char*,waste) executes?
How do pointers work?
Function can be overloaded based on the parameter which is a value or a reference. Explain if the statement is true.
How can you quickly find the number of elements stored in a dynamic array? Why is it difficult to store linked list in an array?
What is the best c c++ compiler for windows?
Write a C++ Program to Generate Random Numbers between 0 and 100
How can you create a virtual copy constructor?
How do I download c++?
How is modularity introduced in C++?
Is map thread safe c++?
Implement strcmp