Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started