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
What is capacity in vector in c++?
In c++, what is the difference between method overloading and method overriding?
What does n mean in c++?
Explain about Virtual Function in C++?
How can a struct in c++ differs from a struct in c?
Do you know what are pure virtual functions?
What is a string example?
What happens when the extern "c" char func (char*,waste) executes?
What is a constructor and how is it called?
What is the use of endl in c++?
Do we have to use initialization list in spite of the assignment in constructors?
How do you flush std cout?
Write some differences between an external iterator and an internal iterator?
What are arrays c++?
Comment on local and global scope of a variable.