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
What is the difference between set and unordered_set?
Can you tell me the differences between Array and ArrayList?
what is traversal in linked lists?
What is nsmutablearray?
Can you sort a hashset?
Explain the expression trees?
What are the advantages of sorting and filtering data?
What is basic data structure?
What happens if we put a key object in a hashmap which exists?
What is map entry?
Write a data structure for a queue.
Differentiate between the singly linked list and doubly linked list.
Which is the best book for data structures and algorithms?
Which is better arraylist or linkedlist?
What are types of Collision Resolution Techniques and the methods used in each of the types?