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 virtual destructor ans explain its use?
Explain 'this' pointer and what would happen if a pointer is deleted twice?
Which field is used in c++?
What is stl containers in c++?
Why c++ is created?
What is recursion?
Describe public access specifiers?
Explain selection sorting. Also write an example.
How can we read/write Structures from/to data files?
Why should you learn c++?
How to get the current position of the file pointer?
What is lvalue?
How compile and run c++ program in turbo c++?
What do the keywords volatile and mean mutable?
Is swift better than c++?