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 / fazil

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

List->Next->Next = List;
}
}

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When we use void main and int main?

1075


why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above

1152


What is the difference between ++a and a++?

1203


What are the types of pointers in c?

1022


Is main is user defined function?

1141


How can I prevent another program from modifying part of a file that I am modifying?

1053


What is memory leak in c?

1125


What is character constants?

1178


What is a lookup table in c?

1117


Describe how arrays can be passed to a user defined function

1290


Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

1091


Why #include is used in c language?

1047


What is integer constants?

1073


Can 'this' pointer by used in the constructor?

1087


What is the best way of making my program efficient?

1029