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 / bipin pandey

node *reverse(node *first)


{
node *cur,*temp;


cur=NULL;

while(first!=NULL)


{temp=first;

first=first->link;

temp->link=cur;

cur=temp;
}

return cur;

}

Is This Answer Correct ?    5 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is most difficult programming language?

1045


Can we make any program in c++ without using any header file and what is the shortest program in c++.

1086


What is vector processing?

1121


What is endianness?

1049


Is rust better than c++?

1072


Can you Mention some Application of C/C++?

1023


Can c++ do everything c can?

1019


Define a nested class.

1035


What are protected members in c++?

1086


Is facebook written in c++?

956


What is the average salary of a c++ programmer?

982


What is the difference between a baller and a reference in C++?

1067


What are different types of loops in c++?

1087


What is atoi in c++?

1029


What is the difference between a declaration and a definition?

1059