make a middle node of doubly linklist to the top of the list
Answer Posted / 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 |
Post New Answer View All Answers
What are the five basic elements of a c++ program?
Explain the concept of dynamic allocation of memory?
What's the order in which the objects in an array are destructed?
What is microsoft c++ redistributable 2013?
What is the role of static keyword for a class member variable?
Can you Mention some Application of C/C++?
What's the order in which the local objects are destructed?
Explain what is oop?
Describe delete operator?
explain the reference variable in c++?
Why is standard template library used?
What kind of problems can be solved by a namespace?
Explain pass by value and pass by reference.
Why c++ does not have finally?
What is the use of c++ programming language in real life?