Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void what3 (char sentence[]){
- char first[MAX_SIZE];
- int i, j, len, len1;
- len = strlen(sentence);
- for(len1=0; sentence[len1]!=' '; len1++);
- for(i=0;i<len1;i++)
- first[i]=sentence[i];
- first[i]='\0';
- for(i=len1+1, j=0; i<len; i++)
- sentence[j++] = sentence[i];
- sentence[j]=' ';
- sentence[j+1]='\0';
- strcat(sentence,first);
- }
Add Comment
Please, Sign In to add comment