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|
If I is an integer variable, which is faster ++i or i++?
What do you mean by Stack unwinding?
How are pointers type-cast?
What are the unique features of C++.
Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?
How to construct virtual constructor
Write about an iterator class?
What is the difference between a copy constructor and an overloaded assignment operator?
What are the advantages of using const reference arguments in a function?
How are virtual functions implemented in c++?
What is the word you will use when defining a function in base class to allow this function to be a polimorphic function?
What is boyce codd normal form in c++?