Pages

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

Sunday 6 July 2014

#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();
}

 

Search Box

Most Reading

Contact Form

Name

Email *

Message *