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

can i know the source code for reversing a linked list with
out using a temporary variable?

Answer Posted / zhangwy

void Func( struct Node* List )
{
if( List && List->Next )
{
Func( List->Next );

List->Next->Next = List;
List->next = NULL ;

}
}

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the difference between 123 and 0123 in c?

1155


What is nested structure in c?

1011


What is #include conio h?

942


to find the closest pair

2288


Explain the bubble sort algorithm.

1002


What are the valid places to have keyword “break”?

1037


How can I use a preprocessorif expression to ?

994


What is the meaning of ?

989


Is main is a keyword in c?

1069


Which is better oop or procedural?

986


What is the purpose of ftell?

1032


What is the usage of the pointer in c?

1039


what are the advantages of a macro over a function?

1093


What is calloc()?

1025


Explain the process of converting a Tree into a Binary Tree.

2607