Computer Science, asked by ahadwarsi84, 3 months ago

write a program that ask user to input a string and display it in reverse form​

Answers

Answered by yashwantsaini779
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 saba547047
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