write program for palindrome
Answer Posted / bala murali
#include<stdio.h>
#include<conio.h>
main()
{
char s1,s2;
printf("enter a string:");
gets(s1);
strcpy(s2,s1);
strrev(s2);
if(strcmp(s1,s2))
printf("palindrome:");
else
printf("not a palindrome:");
getch();
}
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Why use of template is better than a base class?
Explain the operation of overloading of an assignment operator.
How is objective c different from c++?
How should runtime errors be handled in c++?
How do I download c++?
In a function declaration what does extern means?
Which sort does c++ use?
What does asterisk mean in c++?
What is an iterator class in c++?
What is the exit function in c++?
What is a multimap c++?
Is swift faster than c++?
What is heap sort in c++?
What is the best c c++ compiler for windows?
What data encapsulation is in c++?