Question: 9. Given the Nodeobj structure and Node reference below, write a recursive C function with heading int sumList (Node H) that returns the sum of

9. Given the Nodeobj structure and Node reference below, write a recursive C function with heading int sumList (Node H) that returns the sum of all the items in a linked list headed by H. An empty list is headed by NULL and has sum 0 typedef struct NodeObj ( int item; struct NodeObj* next; NodeObj; typedef NodeObj*Node; int sumList (Node H) / your code goes here
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
