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 / sanjay rajput

struct node
{
int val;
struct node *next;
};

typedef struct node NODE;
NODE *p,*start;
p=start->next;
while(p!=NULL)
{
p->next=start;
start=p;
p=p->next;
}

Is This Answer Correct ?    1 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is data and data types?

918


Is selection sort greedy?

875


What do you mean by spanning tree?

1092


What are dynamic data structures?

1336


How can you insert a node at the end of linked list?

864


What is the difference between hashmap and linkedhashmap?

915


Why do we use different types of data structures?

887


Define a path in a tree?

945


What is a b+ tree? Explain its uses.

946


Write is a binary search tree? Write an algorithm and tell complexity?

894


What is array simple?

919


Define a full binary tree ?

1002


What is circular queue example?

929


Explain recursive function & what is the data structures used to perform recursion?

1037


What exactly is data?

916