Check palindrome string in C language
-Palindrome string are those strings which are equal when we traverse string in normal and reverse direction.
string is "saas"
It is palindrome string
string is "Myhome"
It is not palindrome string
//input of string
// find length
printf("String is not palindrome");
printf("String is palindrome");
String is palindrome
String is not palindrome
-In this program, Firstly we take an input of the string.
-Then we reverse that string and store in another variable.
-Then compare both string by using strcmp() function.
-If both are equal then it is palidrome otherwise it's not.
Read More →