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

Define what is constructor?

0 Answers  


What are the advantages of prototyping?

0 Answers  


What are references in c++? What is a local reference?

0 Answers  


plz send me National informatics center paper pattern

1 Answers  


What are the static members and static member functions?

1 Answers  


What is a responder chain?

0 Answers  


Mention the purpose of istream class?

0 Answers  


What is c++ hiding?

0 Answers  


How the compilers arranges the various sections in the executable image?

1 Answers  


Why can you not make a constructor as const?

3 Answers  


What does ios :: app do in c++?

0 Answers  


Can I create my own functions in c++?

0 Answers  


Categories