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 are separators in c++?
Explain storage qualifiers in c++.
What is while loops?
What is a multimap c++?
Difference between declaration and definition of a variable.
How does a copy constructor differs from an overloaded assignment operator?
How would you obtain segment and offset addresses from a far address of a memory location?
Which one is better- macro or function?
When are exception objects created?
What is capacity in vector in c++?
Describe the syntax of single inheritance in C++?
What is a storage class?
Can we inherit constructor in c++?
What are the four main data types?
What is a hashmap c++?