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 / chintan

#include<iostream.h>
#include<conio.h>
#include<string.h>
void main()
{
clrscr();
char *a,*b,s1[10],s2[10];
cout<<"\n ENTER THE STRING : ";
cin>>s1;
strcpy(s2,s1);
a=s1;
b=s2;
strrev(s2);
cout<<s2;
if(strcmp(a,b))
cout<<" \n STRING IS NOT PALINDROME ";
else
cout<<" \n STRING IS PALINDROME ";
getch();
}

Is This Answer Correct ?    35 Yes 31 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is singleton pattern in c++?

987


Show the declaration for a pointer to function returning long and taking an integer parameter.

1127


How come you find out if a linked-list is a cycle or not?

1031


What is anonymous object in c++?

1094


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

1190


What are stacks? Give an example where they are useful.

1041


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

1058


What are the various access specifiers in c++?

1030


What are the main features of c++?

1002


What is the rule of three?

996


What is a c++ map?

1394


Is c++ pass by reference or value?

1056


Is it possible to have a recursive inline function in c++?

1022


List the advantages of inheritance.

1122


What is #include cmath?

1091