what function to use to count the number of words in a string. and also to output the first word and last word in the string.
what function to use to count the number of words in a string. and also to output the first word and last word in the string.
What attempts have you made to solve your homework so far?
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
problem solved. thanks for the reply