Write a program to accept a string and print the string in reverse order in C language

#include<stdio.h>
#include<conio.h>
#include<string.h>
main()
{
	char *s1;
	clrscr();
	printf("Enter string   : ");
	scanf("%s",s1);
	printf("Reverse String : %s",strrev(s1));
	getch();
}
Watch video explaination

Leave a Reply

Your email address will not be published. Required fields are marked *