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 the programs for Linked List (Insertion and Deletion)
operations

Answer Posted / bhargav

In Answer 1 i think there is error in dellast()

void dellast()
{
node *temp,*cur=head;
while(cur->next->next!=NULL) -------> error
{
cur=cur->next;
}
temp=cur->next;
cur->next=NULL;
printf("Deleted item is %d\n",temp->item);
free(temp);
}

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the major data structures used in the network data model?

1062


Which interfaces are implemented by concurrentskiplistset?

863


What are the collision resolution methods?

981


Which sorting does collections sort use?

898


Which sorting algorithm uses minimum number of swaps?

868


What is the method to find the complexity of an algorithm?

1103


How do you sort in ascending order in arraylist?

870


Which process places data at the back of the queue?

1142


What exactly is data?

926


How is bubble sort done?

846


What is red black tree in data structure?

913


What are the Differences between map and hashmap?

1006


What does it mean to sort an array?

977


Which is best book for data structures?

939


How do you represent a linked list?

902