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 abstract operations in the set?
Can arraylist store objects?
How many null values are allowed in hashmap?
What are the standard ways in which a graph can be traversed?
What are the basic data structures?
In which matrix, we can use multilinked structures?
How do you find a string is anagram or not?
What is dynamic array how is it created?
What is a linear search?
Where is data structure used?
List the applications of set adt?
What is a comparator function?
Write the advantage of separate chaining?
Which sorting is used in collections sort?
What is Another name of Dynamically allocating memory.