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 data encapsulation in C++?
Is rust better than c++?
why c++ is not called strictly d super set of c?
What are the uses of c++ in the real world?
Can you explain the term "resource acquisition is initialization?"
Explain the use of vtable.
How to give an alternate name to a namespace?
When are exception objects created?
What will i and j equal after the code below is executed? Explain your answer.
What is the purpose of decltype?
What is meant by forward referencing and when should it be used?
What is a volatile variable in c++?