quick question, I have a string
How would I count the number of words in the string? I tried counting the number of spaces but if they put more than one space between each word It would throw me off.Code:int main ( )
{
char string [ 25 ] = "Hello My Name is Ben";
}
Thanks in advance.