Write a function that accepts a pointer to a C-string as an argument and returns the number of words contained in the string. Also have it display the average number of letters in each word.
Your program should have two overloaded function with the following prototype:
int wordCount(char *, double & avg); //returns word number
int wordCount(string, double & avg); //returns word number