Guest User

Untitled

a guest
Nov 20th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. void what3 (char sentence[]){
  2.  
  3. char first[MAX_SIZE];
  4. int i, j, len, len1;
  5. len = strlen(sentence);
  6. for(len1=0; sentence[len1]!=' '; len1++);
  7. for(i=0;i<len1;i++)
  8. first[i]=sentence[i];
  9. first[i]='\0';
  10. for(i=len1+1, j=0; i<len; i++)
  11. sentence[j++] = sentence[i];
  12. sentence[j]=' ';
  13. sentence[j+1]='\0';
  14. strcat(sentence,first);
  15. }
Add Comment
Please, Sign In to add comment