reversing only certain words of a string
问题 I have a string with the name "Mustang Sally Bob" After i run my code i want the string output to be like this: gnatsuM yllaS boB My approach is to count the words until the space and save the index of where the space is located in the string. then Then I want to print the characters starting from the space backwards. #include <stdio.h> int main() { char* test="Mustang Sally Bob"; int length; //string length int x; for(length=0;test[length] !=0&&test[length];length++); //get string length int