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

Explain the difference between using macro and inline functions?

1079


Which software is used for c++ programming?

1055


What do you mean by volatile and mutable keywords used in c++?

953


Explain what are single and multiple inheritances in c++?

989


What is vector string in c++?

1059


What is an operator in c++?

1018


Describe delete operator?

1054


How to declare an array of pointers to integer?

1105


Is java as fast as c++?

1078


Please explain the reference variable in c++?

1034


Why do we use structure in c++?

1030


Should the this pointer can be used in the constructor?

990


Why are pointers used?

961


Can you pass an array to a function in c++?

976


Where is atoi defined?

1090