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

What do you mean by translation unit?

1036


If a base class is an adt, and it has three pure virtual functions, how many of these functions must be overridden in its derived classes?

1009


What is a manipulator in c++?

1171


What is flush programming?

951


Reverse the Linked List. Input: 1->2->3->4->5->NULL Output: 5->4->3->2->1->NULL

749


What is the disadvantage of using a macro?

1050


What is stoi in c++?

1123


What is const in c++?

1062


What is function prototyping?

1041


What are the unique features of C++.

1032


Is java easier than c++?

955


Why is swift so fast?

1056


Write a corrected statement in c++ so that the statement will work properly. if (4 < x < 11) y=2*x;

1963


What data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack

1023


Write about all the implicit member functions of a class?

1017