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
Explain about set and their types in a collection?
How do you find the number of comparisons in bubble sort?
Define in brief an array.
What is a minimum spanning tree?
What is a node in it?
List the applications of stacks?
Which one is the simplest sorting in data structure?
What is concept of data structure?
What are two types of sorting?
What is the best case complexity of quicksort?
Differentiate between hashset and hashmap.
Which is the parent class of list
Is hashset thread safe?
Where the data structures are used?
Which sorting algorithm is worst?