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
What are c++ files?
What is buffering in c++?
Why is that unsafe to deal locate the memory using free( ) if it has been allocated using new?
Does c++ support multilevel and multiple inheritances?
What is the history of c++?
What is a vector c++?
Is there any difference between int [] a and int a [] in c++?
What is vector pair in c++?
Difference between pointer to constant and constant pointer to a constant. Give example.
Why was c++ created?
How to give an alternate name to a namespace?
Can c++ be faster than c?
What are c++ stream classes?
What is data binding in c++?
Which programming language should I learn first?