write program for palindrome
Answer Posted / sat
#include<stdio.h>
#include<string.h>
void main()
{
char a[40],b[40];
printf("\n Enter String:= ");
gets(a);
strcpy(b,a);
strrev(b);
if(strcmp(b,a)==0)
printf("\n Entered string \"%s\" ispalindrome",b);
else
printf("\n Entered string \"%s\" is not palindrome",a);
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is function overloading c++?
Which programming language is best?
Why is standard template library used?
Define virtual constructor.
What is using namespace std in cpp?
Which is not a valid keyword a) public b) protected c) guarded
Which operator cannot overload?
Can I uninstall microsoft c++ redistributable?
What is jump statement in C++?
Should the this pointer can be used in the constructor?
How can I learn c++ easily?
Why Pointers are not used in C++?
Can you declare an array without a size in c++?
What is pair in c++?
What is a rooted hierarchy?