#include
#include
int stpal(char str[50]);
void main()
{
char str[50];
int pal;
clrscr();
printf(”\n\n\t ENTER A STRING…: “);
gets(str);
pal = stpal(str);
if(pal)
printf(”\n\t THE ENTERED STRING IS A PALINDROME”);
else
printf(”\n\t THE ENTERED STRING IS NOT A PALINDROME”);
getch();
}
int stpal(char str[50])
{
int I = 0, len = 0, pal = 1;
while(str[len]!=’\0')
len++;
len–;
for(I=0; I
#include
int stpal(char str[50]);
void main()
{
char str[50];
int pal;
clrscr();
printf(”\n\n\t ENTER A STRING…: “);
gets(str);
pal = stpal(str);
if(pal)
printf(”\n\t THE ENTERED STRING IS A PALINDROME”);
else
printf(”\n\t THE ENTERED STRING IS NOT A PALINDROME”);
getch();
}
int stpal(char str[50])
{
int I = 0, len = 0, pal = 1;
while(str[len]!=’\0')
len++;
len–;
for(I=0; I