Thursday, 2 February 2017

Link List Count Function

NIELIT O Level Solved Paper

January 2016

Q 9 B. Define the structure of a node of a singly linked list and use it to write a function to count thenumber of nodes in a singly linked list. The function should accept a pointer to the first node ofthe list and it should return the number of nodes in the list.

Solution :

/* ************************************************

Girfa
: Student Help

Counting
node in link list

for
more program visit : http://girfahelp.blogspot.com/p/c-language-assignment.html