Contact Learn C
Copy

Program 240: String Palindrome using library functions

Program 240:
 
#include<stdio.h>
#include<string.h>
main()
{
char str[100],rev[100];
printf("Enter a string to know whether it is palindrome or not\n");
gets(str);
strcpy(rev,str);
if(strcmp(str,strrev(rev))==0)
{
    printf("The given string is Palindrome\n");
}
else
{
    printf("The given string is Not Palindrome\n");
}
}
 
Explanation:

//Coming Soon

Output:

String Palindrome using library functions
Donate

Download App and Learn when ever you want

Get it on PlayStore
Get it on Amazon App Store
Get it on Aptoide