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 / pallavi attarde

#include<iostream.h>
#include<string.h>

int main()
{
char str[25],str1[25];
cout<<"Enter a string: ";

gets(str);

strcpy(str1,str);
strrev(str);
if(strcmp(str,str1)!=0)
{
cout<<"string is not palindrome";
}
else
{
cout<<"string is a palindrome";
}

cout<<endl;

Is This Answer Correct ?    596 Yes 248 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is struct c++?

996


What is a dangling pointer in c++?

1134


What are shallow and deep copies?

1111


Can comments be longer than one line?

1072


What do you mean by translation unit?

1091


Do class declarations end with a semicolon? Do class method definitions?

1147


What is the difference between containment and delegation?

1328


Declare a class vehicle and make it an abstract data type.

964


How can I learn c++ easily?

1076


What is lambda in c++?

1217


What is the full form of stl in c++?

1192


Can create new c++ operators?

1028


Why c++ does not have finally?

1076


Can we inherit constructor in c++?

1090


What is auto type c++?

1121