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 |
Define what is constructor?
What are the advantages of prototyping?
What are references in c++? What is a local reference?
plz send me National informatics center paper pattern
What are the static members and static member functions?
What is a responder chain?
Mention the purpose of istream class?
What is c++ hiding?
How the compilers arranges the various sections in the executable image?
Why can you not make a constructor as const?
What does ios :: app do in c++?
Can I create my own functions in c++?