Answered You can hire a professional tutor to get the answer.

QUESTION

Word CounterWrite a function that accepts a pointer to a C-string as an argument and returns the numberof words contained in the string.

1. Word CounterWrite a function that accepts a pointer to a C-string as an argument and returns the numberof words contained in the string. Demonstrate the function in a program that asks the userto input a string and then passes it to the function. The number of words in the string should be displayed on the screen.

2. Average Number of LettersModify the “Word Counter” function, so it also displays the average number of letters ineach word

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question