Question: A list of strings is built using the following struct: struct node { char data[8]; struct node *next; }; Define a function named findString that
A list of strings is built using the following struct: struct node { char data[8]; struct node *next; }; Define a function named findString that searches for a given string in a list. The first argument of the function is a pointer to the list. The second argument is a string (char*). Return 1 if a string that matches the 2nd argument is in the list; otherwise return 0. You may use strcmp() to compare strings, and you may assume that all necessary header files have been included.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
