Skip to content

Commit

Permalink
Create rev_str Using strrev()
Browse files Browse the repository at this point in the history
  • Loading branch information
PRAJWALSHETTY2002 authored Oct 22, 2022
1 parent d9fde73 commit f94f27d
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions rev_str Using strrev()
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#include <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;

}

0 comments on commit f94f27d

Please sign in to comment.