Sunday, May 5, 2013

String:Reverse string

Write a program in c which will reverse a string 
#include <stdio.h>
#include <string.h>
int main()
{
   char rose[100];
   printf("Enter a string to reverse\n");
   gets(rose);
   strrev(rose);
   printf("After reverse the  string is \n%s\n",rose);
   return 0;
}