0
Word counter
Can someone help me to improve my code which counts words in a sentence using FOR loop in C language? Like If there were more whitespaces between the words or something like that, just to make it solid and more complex... https://code.sololearn.com/c5hBO6XaBqRd/?ref=app
1 Réponse
+ 2
you can check and strip the space at the beginning and the end.
check if there are another space before/after the current space.