by Dinesh Thakur

 

 



#include<stdio.h>
#include<string.h>
main()
{
  char a[5],b[5];
  clrscr();
  printf("Enter the character =");
  scanf("%s",&a);
  strcpy(b,a);
  strrev(a);
  if(strcmp(a,b)==0)
  {
    printf("String is palandrom");
  }
  else
   printf("String is not palandrom");
   getch();
 }