#include <stdio.h>
#include <stdlib.h>
void main()
{
char x[10],y[10];
int i,j,k,flag=0;
printf("enter the string: ");
fgets(x,sizof(x),stdin);
for(i=0;x[i]!='\0';i++)
for(j=0,k=i;x[k]!='\0';j++,k--)
{
y[j]=x[k];
}
if(x==y)
{
printf("the string is palindrome");
}
else
{
printf("not palindrome");
}
}
rithish 13 Junior Poster in Training
I_m_rude
rithish 13 Junior Poster in Training
I_m_rude
zeroliken 79 Nearly a Posting Virtuoso
rithish 13 Junior Poster in Training
zeroliken 79 Nearly a Posting Virtuoso
rithish 13 Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.