// Input two strings s and t from the user. Assume that the strings do notcontain blank or any whitespace // character.Write a function that finds if s is a palindrome of t, i.e., whether the reverse of s is equal // to t. If it is a palindrome, return 1; otherwise, return0.The parameters of the function ispalindrome // contains only pointers to characters // // Author:rahule@cse.iitk.ac.in #include #include int palindrome(char *, char *); int string_length(char *); main() { char s[50],t[50]; //enter the strings printf("Enter the first string :"); scanf("%s",s); printf("Enter the second string :"); scanf("%s",t); if(palindrome(s,t)) printf("The string entered are palindrome to each other\n"); else printf("The string entered are NOT palindrome to each other\n"); } int palindrome(char *s, char *t) //returns 1 if s is the palindrome of t,else returns 0 { int s_length,t_length,i; s_length=string_length(s); //finds length of s t_length=string_length(t); //finds length of t if(s_length != t_length) //if length doesn't match,return 0 return(0); for(i=0;i