Test 2: Check Logic for not a palindrome when input is in initcap Test 1: Check Logic for palindrome when input is in lowercase code example
Example: Write a program to check whether inputted string is palindrome or not.
#include
#include
int main()
{
char s[1000];
int i,n,c=0;
printf("Enter the string : ");
gets(s);
n=strlen(s);
for(i=0;i