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 the use of typedef?
How did c++ get its name?
What are the important differences between c++ and java?
Which is better turbo c++ or dev c++?
What do c++ programmers do?
Describe new operator and delete operator?
What does floor mean in c++?
Explain binary search.
What is pointer in c++ with example?
Can a constructor return a value?
Is dev c++ free?
What is the syntax for a for loop?
Can I learn c++ as my first language?
Explain what you mean by a pointer.
Differentiate between a constructor and a destructor in c++.