Reversing words within a string
问题 I am to reverse the words within a string. I feel like I'm headed in the right direction. But I keep getting wonky output and cant help but think it has to do with my strncat() function. Do any of you see any issues with out I've decided to handle it. I'm open to suggestion on other ways to do it. int main() { int ch, ss=0, s=0; char x[3]; char *word, string1[100], string2[100], temp[100]; x[0]='y'; while(x[0]=='y'||x[0]=='Y') { printf("Enter a String: "); fgets(string1, 100, stdin); if