New Android apps UniqueKey

Friday 20 February 2015

Reverse the string


#include<stdio.h>
#include<string.h>

main()
{
 char str[50];
 
 printf("enter the string\n");
 gets(str);
 
 strrev(str);
 
 printf("reversed string is : %s\n",str);
 
}

No comments:

Post a Comment