Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //count initialized in main as count = 0;
- int wordLength(char string[], int &count)
- {
- if(string[count] == '\0')
- {
- return 0;
- }
- else
- {
- count++;
- wordLength(string[], count);
- }
- return count;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement