C Program to Reverse String

#include<stdio.h>
#include<conio.h>
#include<string.h>
int main()
{
    clrscr();
    char Str1[100];

    printf("\n Please Enter the String :  ");
    gets(Str1);

    strrev(Str1);

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

    return 0;
    getch();
}

Run:
 

No comments:

Post a Comment

100 C Programs with Code and Output

Program 1: C Program To Read Two Numbers And Print The Sum Of Given Two Numbers. Program 2: C Program To Read Three Numbers And Prin...