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...

Write a program to reverse a linked list?

Answer Posted / jithin

reverse(Node * previous, Node * Current)
{
start = current;
if(current !=null)
{
reverse(current, current->next);
current->next = previous;
}

}

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain stack unwinding.

1026


What is object file? How can you access object file?

1137


What are the two types of comments, and how do they differ?

1062


What is the difference between prefix and postfix versions of operator++()?

1038


Can the creation of operator** is allowed to perform the to-the-power-of operations?

957


Explain virtual class?

976


Arrange Doubly linked list in the ascending order of its integral value and replace integer 5 with 7?

4079


Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).

1071


What are compilers in c++?

1030


What is the latest c++ version?

1063


Explain class invariant.

1006


what are the events occur in intr activated on interrupt vector table

1708


What are the basic data types used in c++?

1007


How can you differentiate between inheritance and implementation in c++?

1162


What are keywords in c++?

1056