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

struct node{
int data;
node * next;
};
node *pt1,*pt2=NULL:
while(root!=NULL)
{
pt1=root;
root=root->next;
pt1->next=pt2;
pt2=pt1;
}

Is This Answer Correct ?    31 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Another name of Dynamically allocating memory.

926


What is harvesting in agriculture?

811


why boundary tag representation is used?

869


What is the minimization factor and time complexity of b-tree?

1075


Which is faster hashmap or linkedhashmap?

870


Differentiate between failfast and failsafe.

1122


What is difference between list and array list?

811


Is list an array?

791


How can you insert a node in a random location of the linked list?

852


How do you declare An array of three char pointers

943


What are different techniques for making hash function? Explain with example.

976


What are priority queues?

917


What is the difference between one and two dimensional?

950


What are the goals of data structure?

1186


Is a hashset ordered?

937