Computer Science, asked by dhamija8371, 9 months ago

Code to reverse a string.

Answers

Answered by deepanjalipanda7978
0

Answer:

answer of above question ::

Explanation:

include <stdio.h>

<stdio.h>#include <string.h>

<stdio.h>#include <string.h>int main()

<stdio.h>#include <string.h>int main(){

<stdio.h>#include <string.h>int main(){ char s[100];

<stdio.h>#include <string.h>int main(){ char s[100]; printf("Enter a string to reverse\n");

<stdio.h>#include <string.h>int main(){ char s[100]; printf("Enter a string to reverse\n"); gets(s);

<stdio.h>#include <string.h>int main(){ char s[100]; printf("Enter a string to reverse\n"); gets(s); strrev(s);

<stdio.h>#include <string.h>int main(){ char s[100]; printf("Enter a string to reverse\n"); gets(s); strrev(s); printf("Reverse of the string: %s\n", s);

<stdio.h>#include <string.h>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;

<stdio.h>#include <string.h>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