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

How main function is called in c?

1122


What is adt in c programming?

1158


What is a ternary operator in c?

1120


What is the purpose of the preprocessor directive error?

1264


How are variables declared in c?

1092


any "C" function by default returns an a) int value b) float value c) char value d) a & b

1081


explain what is fifo?

1068


program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)

2093


program to convert a integer to string in c language'

2453


Why is main function so important?

1101


Where is volatile variable stored?

1085


How can this be legal c?

1084


Can we change the value of #define in c?

996


What is getch() function?

1055


What are pointers? Why are they used?

1175