void count(struct node *start) { int count = 0; struct node *p=start; while(p!=NULL) { p=p->link; count++; } printf("Number of nodes %d ", count); }
Your email address will not be published. Required fields are marked *
Post Comment
Δ
This site uses Akismet to reduce spam. Learn how your comment data is processed.