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

create an singly linked lists and reverse the lists by
interchanging the links and not the data?

Answer Posted / jishu

This is a more efficient version of the program given in ans 2.

p=head;
result=NULL;

while(p!=NULL)
{
temp=p->next;

p->next=result;
result=p;

p=temp;

}

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can arraylist store objects?

940


How does a heap sort work?

890


How does hashset maintain order?

948


What does a bubble chart show?

892


Why do we use dynamic arrays?

857


What is the difference between arraylist and hashmap?

995


Will it create any problem if we add elements with key as user defined object into the treemap?

903


Why is it called bubble sort?

879


Can we put null key in hashmap?

890


What do you mean by level of the tree?

1046


how to add an item to the beginning of the list?

967


Define non-terminal nodes in a tree?

1144


List the data structures which are used in hierarchical data model.

945


How do you sort an arraylist in descending order?

789


What is data type with example?

938