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 |
Tell me difference between constant pointer and pointer to a constant.
Write a C++ Program to Generate Random Numbers between 0 and 100
Have you used MSVC? What do you think of it?
Which one between if-else and switch is more efficient?
How do you import payscale data from non SAP to SAP?is it through LSMW or any other way is there?
iam a fresher to Qt(GUI a c++ based framework software). i need to develop the basic applications on designer by drag and dropping mechanism...so pls send me the procedure to design applications?
Declare a class vehicle and make it an abstract data type.
Write about the members that a derived class can add?
If a base class is an adt, and it has three pure virtual functions, how many of these functions must be overridden in its derived classes?
What is class and structure in c++?
What is a buffer c++?
Which ide is best for c++?