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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the keyword auto for?

995


Do you know the use of vtable?

1086


Explain the different access specifiers for the class member in c++.

937


What are c++ redistributables?

981


What is the best way to declare and define global variables?

1228


what is C++ exceptional handling?

1099


What is pure virtual function? Or what is abstract class?

1008


What is c++ prototype?

1082


Explain the purpose of the keyword volatile.

1105


What are manipulators in c++ with example?

1008


How can you create a virtual copy constructor?

1036


What are disadvantages of pointers?

988


give me an example for testing a program showing the test path .show how the test is important and complex.

2861


Define friend function.

985


How would you use the functions randomize() and random()?

1026