top of page

Singly Linked List-Part 5

Writer's picture: Apurba PaulApurba Paul

This function prints the summation of the information of each node.

//Sum Function void sum() { int sum=0; Node *tptr=start; while(tptr) { sum=sum+tptr->info; tptr=tptr->Link; } printf("\nSum is:%d",sum); }

4 views0 comments

Recent Posts

See All

Comments


9874752090

©2019 by Mr. Apurba Paul. Proudly created with Wix.com

bottom of page