Add two Doubly linked list by R4R Team

Following is the function to add two doubly linked list:

void add(struct node *first1, struct node *first2)
{
printf("Sum of Both Linklost is");
while(first1!=NULL && first2!=NULL)
{
printf("%d",first1->data+first2->data);
}
}




Leave a Comment: