C-programming - String reverse in c, C program to reverse a string
String reverse in c
This program reverses a string entered by the user. For example if a user enters a string "hello" then the reversed string will be "olleh".#include
#include
main() { char a[100]; printf("Enter a string to reverse\n"); gets(a); strrev(a); printf("Reversed string is \n%s\n",a); return 0; }
output
Enter a string to reverse computer Reversed string retupmoc
The topic on C-programming - String reverse in c is posted by - Maha
Hope you have enjoyed, C-programming - String reverse in cThanks for your time