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 are the advantages of binary search over linear search?
How to sort 1 million floating point numbers?
Why is waste sorting important?
How do I sort hashset?
What is meant by deque?
Describe linear probing with an example.
Which is faster hashmap or hashtable?
What are the types of binary tree?
What is the method to find the complexity of an algorithm?
What are stacks? Give some of its applications.
Define path in a graph?
What is a multidimensional array?
What do you mean by overflow and underflow?
What is static array?
What will be the output of below code?