Question: c programming The following declaration applies to Questions 4, 5 and 6: typedef struct node Node; struct node { int data; fode* next; a. Write

The following declaration applies to Questions 4, 5 and 6: typedef struct node Node; struct node \{ int data; fode* next; a. Write a recursive function called sum that given a Node pointer to the head of a list will return the sum of all data in the linked list. b. Write the iterative version of the sum function that given a Node pointer to the head of a list will return the sum of all data in the linked list
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
