() Given the following structure definition and typedef for alinked list of strings:
typedef struct node st node;
struct node st
{
char *word; /* a valid string pointer or NULL */
node *next; /* next node in the list or NULL */
};
Write a C function, free list(), that takes as an argument oneof these lists, possibly NULL, and frees all the strings as well asthe list itself.
Write robust code. void free list(node *list){
Solution
void free_list(node *list) { if (list != NULL) { node *temp; while (list
OR
OR