Add two singly linked list by R4R Team

Example-
First Linked list is 5->2->3
Second Linked list is 1->3->4
Addition is 6->5->7


Function:

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:
Search
Categories
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!