Implement a C program that, using a modular structure, is able to handle simple strings. For that, implement the following functions.
A function with the prototype int CountSpaces(char *str) that, making use of pointer notation only, returns the number of spaces found in str.
A function, whose prototype is char *FirstLetterCaps(char *str) that replaces the first letter of each word in str with it's uppercase version.
A main() function where you declare a string which can hold up to 80 characters. After asking the string to the user (via terminal) make use of the previously implemented functions to print to the terminal:
The number of spaces found in the string;
The string with the first letter of each word in uppercase;
0 Answer(s)