Menu

Write C C Program Count Number Words Sentences String Assume Sentences End Either Define Q43808945(1)

Write a C (not C++) program to count the number of words andsentences in a string. You can assume that all the sentences endwith either ‘.’ or ’!’ or ‘?’. You can define the string in yourprogram as a character array. For demonstration purpose, youroutput should exactly look like following.

String: Hello! Welcome to class. It is a great day, is itnot?

Contains: The string contains 12 words and 3 sentences

.

Expert Answer


Answer to Write a C (not C++) program to count the number of words and sentences in a string. You can assume that all the sentence…

OR