int count(struct node *p) // p is a pointer to the first node of the list. { if(p) return 1 + count(p->link); else return 0; }
No comments:
Post a Comment