write a c program to check whether string is palindrome
Answers
Answered by
3
int main()
{
char a[100], b[100];
printf("Enter a string to check if it is a palindrome\n");
gets(a);
strcpy(b, a); // Copying input string
strrev(b); // Reversing the string
if (strcmp(a, b) == 0) // Comparing input string with the reverse string
printf("The string is a palindrome.\n");
else
printf("The string isn't a palindrome.\n");
return 0;
}
Hope it helps you!
Mark as brainliest!
Follow me!
Answered by
0
Answer:
Hey mujhe kuch bighad na nai tha...pr she was trying to say sorry and tum uska majak uda rahe the..isliye Maine bola....aur akeli bhi thi..usse of course bura laga hoga
Similar questions