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

How does list r; differs from list r();?

1194


What does the following code do: int c=0; cout< a) Undefined *Updated* b) 01 c) 00

1123


What is struct c++?

1049


What are files in c++?

1088


What are the three forms of cin.get() and what are their differences?

1313


What is c++ & why it is used?

1143


Write a program in c++ to print the numbers from n to n2 except 5 and its multiples

2542


Write a C++ Program to check whether a number is prime number or not?

1167


Explain abstraction.

1172


State two differences between C and C++.

1243


What is the maximum combined length of command line arguments including the space between adjacent arguments?

1035


Is empty stack c++?

1054


Are there interfaces in c++?

1064


What is the role of static keyword for a class member variable?

1114


What is the best it certification?

1159