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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!