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 are the static members and static member functions?

1 Answers  


What are abstract data types in c++?

0 Answers  


Explain how overloading takes place in c++?

0 Answers  


What is a 'pure' virtual function and what's its use?

1 Answers  


What is the best book for c++ beginners?

0 Answers  


What is flush programming?

0 Answers  


What is setf in c++?

0 Answers  


Why c++ is so important?

0 Answers  


What is encapsulation in c++ with example?

0 Answers  


What is c++ and its features?

0 Answers  


What is implicit conversion/coercion in c++?

1 Answers  


Can non graphic characters be used and processed in C++?

0 Answers   HCL,


Categories