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 data encapsulation in C++?

0 Answers  


Is rust better than c++?

0 Answers  


why c++ is not called strictly d super set of c?

3 Answers   Satyam,


What are the uses of c++ in the real world?

0 Answers  


Can you explain the term "resource acquisition is initialization?"

1 Answers   Amazon,


Explain the use of vtable.

0 Answers  


How to give an alternate name to a namespace?

0 Answers  


When are exception objects created?

0 Answers  


What will i and j equal after the code below is executed? Explain your answer.

1 Answers  


What is the purpose of decltype?

1 Answers  


What is meant by forward referencing and when should it be used?

0 Answers  


What is a volatile variable in c++?

2 Answers  


Categories