I want to know how to reduce the spaces between words if they are separated by more than one spaces.
I know a little bit of it.After Scanning the string to see if a space is encountered,what am i supposed to do?