write a program that ask user to input a string and display it in reverse form
Answers
Answered by
1
Explanation:
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; }
Answered by
0
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