Question: Write a C program to determine the average number of words per line by using strtok. You will write a function that does the following:
Write a C program to determine the average number of words per line by using strtok. You will write a function that does the following:
1. uses strtok to tokenize a string containing multiple sentences into individual sentences;
2. uses strtok to tokenize a string containing a sentence into individual words and thus determine the number of words in that sentence ; and
3. correctly calculates the average number of words per sentence.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
