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 are the static members and static member functions?
What are abstract data types in c++?
Explain how overloading takes place in c++?
What is a 'pure' virtual function and what's its use?
What is the best book for c++ beginners?
What is flush programming?
What is setf in c++?
Why c++ is so important?
What is encapsulation in c++ with example?
What is c++ and its features?
What is implicit conversion/coercion in c++?
Can non graphic characters be used and processed in C++?