Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


make a middle node of doubly linklist to the top of the list



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

Post New Answer

More C++ General Interview Questions

What is the difference between cin.read() and cin.getline()?

0 Answers  


What is the maximum combined length of command line arguments including the space between adjacent arguments?

0 Answers  


How can an improvement in the quality of software be done by try/catch/throw?

0 Answers  


Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?

0 Answers  


Is there a new/delete equivalent of realloc?

1 Answers  


What is namespace std; and what is consists of?

0 Answers  


What are member functions used in c++?

0 Answers  


What are the static members and static member functions?

1 Answers  


How to declare a pointer to an array of integers?

0 Answers  


Is c++ an integer?

0 Answers  


What is the difference between stack and heap memory?

1 Answers  


What are friend classes?

0 Answers  


Categories