top of page
Writer's pictureApurba Paul

Singly Linked List-Part 5

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


bottom of page