Here is the C program to check whether a string is palindrome or not.

Code: C
 #define size 26 // u can set the maximum allowable size of the string here
 void main()
     char strsrc[size];
     char strtmp[size];
     printf("\n Enter String: ");
     strcpy(strtmp,strsrc); // create a copy
     strrev(strtmp); // reverse the copied string
     if(strcmp(strsrc,strtmp)==0) // compare the two strings
         printf("\n Entered string \"%s\" is palindrome",strsrc);
         printf("\n Entered string \"%s\" is not    palindrome",strsrc);