Write a function accepts a pointer to a string


Discuss the following:

Q: Write a function that accepts a pointer to a string as an argument and capitalizes the first character of each sentence in the string. For instance, if the string argument is "hello. my name is Joe. what is your name?", the function should manipulate the string so it contains "Hello. Myname is Joe. What is your name?"

Ask the user to input a string and then pass the string to the function. The modified string should be displayed on screen. The function should return the number of vowels. The function that accepts the same pointer to the string and returns the number of consonants appearing in the string -- the program should display to the screen BOTH the vowel count AND the consonant count.

 

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Write a function accepts a pointer to a string
Reference No:- TGS01937755

Now Priced at $25 (50% Discount)

Recommended (93%)

Rated (4.5/5)