How can we count the number of word in sentence without using <string.h> library ?
Example :
My name is SeA!
The sentence got 4 words there, how can we count it ?
Printable View
How can we count the number of word in sentence without using <string.h> library ?
Example :
My name is SeA!
The sentence got 4 words there, how can we count it ?
Look at each character
If a nonspace follows a space, increment the word counter.