Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- char* second_word (char text[] )
- {
- char *ptr=text;
- while(*ptr!=' ' && *ptr!=' ' && *ptr!=0)
- {
- ptr++;
- }
- while(*ptr==' ' || *ptr==' ' || *ptr==0)
- {
- ptr++;
- }
- return ptr;
- }
- int main()
- {
- char text[]="Siema heniu";
- printf("%s", second_word(text));
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement