Code to reverse a string.
Answers
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;}