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 the difference between "overloading" and "overridding"?
Which is the best c++ software?
What is the role of C++ shorthand's?
When can you tell that a memory leak will occur?
What is prototype in c++ with example?
Describe private, protected and public – the differences and give examples.
What is general form of pure virtual function? Explain?
Friend functions can access private and protected members of a class.
How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?
what is C++ objects?
Write a single instruction that will store an EVEN random integer between 54 and 212 inclusive in the variable myran. (NOTE only generate EVEN random numbers)
What is atoi in c++?