C Program to Reverse a String using Function

#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
char sk[15];
clrscr();
printf("Enter the String: ");
gets(sk);
printf("\nThe Reversed String is %s",strrev(sk));
getch();
}

Output:

C Program to Reverse a String using Function