how to reverse a string in c language without gets code example
Example: code to reverse a string
#include
#include
int main()
{
char s[100];
printf("Enter a string to reverse\n");
gets(s);
strrev(s);
printf("Reverse of the string: %s\n", s);
return 0;
}