C Programming Code Examples C > Strings Code Examples Reverse Letter in Each Word of the Entered String Reverse Letter in Each Word of the Entered String In this program we are going to accept a string . This program will check for word inside string and if word founds then program will reverse that word. Similarly it will reverse out all all the words. #include<stdio.h> #include<conio.h> #include<string.h> void main() { char msg[] = "C Programming Language | Happy Codings :)"; char str[10]; int x = 0, j = 0; clrscr(); while (msg[x] != '\0') { if (msg[x] != ' ') { str[j] = msg[x]; j++; } else { str[j] = '\0'; printf("%s", strrev(str)); printf(" "); j = 0; } x++; } str[j] = '\0'; printf("%s", strrev(str)); getch(); }