Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

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

990


How does c++ sort work?

924


Refer to a name of class or function that is defined within a namespace?

1048


What are the storage qualifiers?

1105


What is c++ virtual inheritance?

1073


What is ios class in c++?

1028


Why we use #include conio h in c++?

992


What is the insertion operator and what does it do?

986


What is the difference between structure and class?

1159


Why isn't sizeof for a struct equal to the sum of sizeof of each member?

945


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?

1009


How can you specify a class in C++?

1223


What does I ++ mean in c++?

1034


What will happen if a pointer is deleted twice?

1131


what does the following statement mean? int (*a)[4]

1029