Thursday, 13 October 2016

to reverse a string or word using strrev() function

#include<stdio.h>
#include<string.h>
int main()
{
char a[10];
int i,j;
printf("enter the string:");
gets(a);
strrev(a);
printf("the reverse of string :");
puts (a);
}

No comments:

Post a Comment