Problem statement
Write a c program to do the following
Consider the interface of a recursive function:
int wordIndex(char *x, int ind[]).
It takes a string and an int array as parameters.
It returns the word count(i.e. the number of words in that line). The int array after
return will hold the starting indexes of words in
the string.
For Example
Consider the string
"This string has five words".
Your program should say that this line contains 5 words,and starting address of words are 1,5,...