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

When is the destructor called?

1085


an operation between an integer and real always yeilds a) integer result b) real result c) float result

1214


Const char *p , char const *p What is the difference between the above two?

1256


Is c++ vector a linked list?

1045


What is the difference between delegation and implemented-in-terms-of?

1055


which operator is used for performing an exponential operation a) > b) ^ c) none

1112


What is stl containers in c++?

1091


What is srand c++?

1171


What is auto type c++?

1170


What is a Default constructor?

1674


What is #include cmath?

1144


Why was c++ created?

1084


What is data binding in c++?

1006


What is meant by entry controlled loop?

1181


How is computer programming useful in real life?

1120