Write a program in c language to reverse a string by using strrev function or ptrint a string in reverse order
#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();
}
#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();
}