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

What does each entry in the link list called?

902


What is a queue in data structure?

1011


Where is data structure used?

959


What are the benefits of using arrays?

1047


Mention the data structures which are used in graph implementation.

876


How to create an Array?

973


What does stack top do?

900


Tell me how to find middle element of linked list in one pass?

907


What are the Difference between tcp and udp?

994


Can we store a string and integer together in an array?

890


Do you know how to find if linked list has loop?

1067


Can map contain duplicate keys?

849


What do you understand by doubly linked list?

915


What is time complexity of arrays sort?

990


Explain the common uses of tree database.

924