Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- how to find the size of a LINKED LIST (data structure) in c language?
- Here is how the function will look like.
- int size(Node *head)
- {
- int len = 0;
- while(head != null)
- {
- len++;
- head = head->next;
- }
- return len;
- }
Advertisement
Add Comment
Please, Sign In to add comment