Write a program to enter a string and print in reverse order.
Answers
Answered by
12
Explanation:
C program to reverse a string
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; }
Similar questions