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
Would you rather wait for quicksort, linear search, or bubble sort on a 200000 element array? (Or go to lunch...) a) Quicksort b) Linear Search c) Bubble Sort
How does c++ sort work?
Refer to a name of class or function that is defined within a namespace?
What are the storage qualifiers?
What is c++ virtual inheritance?
What is ios class in c++?
Why we use #include conio h in c++?
What is the insertion operator and what does it do?
What is the difference between structure and class?
Why isn't sizeof for a struct equal to the sum of sizeof of each member?
If a base class is an adt, and it has three pure virtual functions, how many of these functions must be overridden in its derived classes?
How can you specify a class in C++?
What does I ++ mean in c++?
What will happen if a pointer is deleted twice?
what does the following statement mean? int (*a)[4]