Skip to content

Commit 6be80a8

Browse files
Merge pull request seeditsolution#193 from hsantanu836/patch-1
reverse_a_string
2 parents af9d6d8 + caa8276 commit 6be80a8

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Diff for: reverse_a_string

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#include <stdio.h>
2+
#include <string.h>
3+
int main()
4+
{
5+
char s[100];
6+
7+
printf("Enter a string to reverse\n");
8+
gets(s);
9+
10+
strrev(s);
11+
12+
printf("Reverse of the string: %s\n", s);
13+
14+
return 0;
15+
}

0 commit comments

Comments
 (0)