Thursday, March 3, 2016

strrev() function example in C

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
#include<stdio.h>
#include<string.h>

main()
{
 char aSimpleString[80];
 printf("Enter your string\n");
 gets(aSimpleString);
 printf("Revers is %s",strrev(aSimpleString));
}

No comments:

Post a Comment

Thank you for commenting. Please wait for response :)