C program to reverse a string.


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

int main()
{
   char arr[100];

   printf("Enter a string to reverse\n");
   gets(arr);

   strrev(arr);

   printf("Reverse of the string is \n%s\n", arr);

   return 0;
}

Output:-
Enter a string to reverse
INDIA
Reverse of the string is
AIDNI

              

1 Comments

  1. Looking for the Genuine Experience Certificate with 100% Complete Verification So Contact Experienced Letter Solutions Consulting Firms Which Provide Experienced Letter with100 % Guaranteed. Contact Now- 9599119376. Or Visit Website- https://experincedletter.blogspot.com/

    ReplyDelete
Previous Post Next Post