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 the
number of nodes in a singly linked list. The function should accept a pointer to the first node of
the 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
*************************************************/