write a C program to determine if the given string is a palindrome or not.
Answers
Answered by
0
Answer:
what is a c program I don't know about the c program
Answered by
0
#include<studio.h>
#include<string.h>
#include<conio.h>
void main ( )
{
clrscr( );
char sample[ ] = {"suhani"}
char sample2[ ];
strcpy(sample2,sample);
if(strcmp(sample,strrev(sample2)==0)
{
printf("palindrome");
}
else
{
printf("not palindrome");
}
getch( );
}
Hope work !!☺️☺️
Similar questions