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
List the data structures which are used in hierarchical data model.
What do you mean by spanning tree?
What is the two-dimensional array?
Explain the term base case?
What are three common types of traversals?
What are different techniques for making hash function? Explain with example.
Define non-linear data structures?
What is application of data structure?
Define threaded binary tree. Explain its common uses
Describe what is Node in link list? And name the types of Linked Lists?
Does array sort mutate?
Differentiate null and void?
Which is the slowest sorting algorithm?
How can we delete any specific node from the linked list?
Is array part of collection framework?