write program for palindrome
Answer Posted / ramya
#include<stdio.h>
#include<conio.h>
void main()
{
string s1,s2;
printf("Enter the string:");
scanf("%s",s1);
s2=strrev(s1);
if(s1==s2)
{
printf("the given string is palindrome");
}
else
printf("the given string is not palindrome");
}
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
When is the destructor called?
an operation between an integer and real always yeilds a) integer result b) real result c) float result
Const char *p , char const *p What is the difference between the above two?
Is c++ vector a linked list?
What is the difference between delegation and implemented-in-terms-of?
which operator is used for performing an exponential operation a) > b) ^ c) none
What is stl containers in c++?
What is srand c++?
What is auto type c++?
What is a Default constructor?
What is #include cmath?
Why was c++ created?
What is data binding in c++?
What is meant by entry controlled loop?
How is computer programming useful in real life?