Answer:
#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
clrscr();
char a[100],b[100];
printf("Enter a string: ");
scanf("%s",&a);
strcpy(b,a);
strrev(b);
if(strcmp(a,b)==0)
{
printf("\nThe given string '%s' is
palindrome !",a);
}
else
{
printf("\nThe given string '%s' is not
palindrome !",a);
}
getch();
}
Simple Output:
Enter
string: MRM
The
given string MRM is palindrome!