Write a program in c language to reverse a string by using strrev function or ptrint a string in reverse order

7/06/2014 04:43:00 pm Unknown 0 Comments

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

int main()
{
   char str[100];

   printf("Enter a string to reverse: ");
   gets(sttr);

   strrev(str);  //function to reverse a string

   printf("Reverse of entered string is: %s\n", str);

   getch();
}