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 protected inheritance?

1058


What is virtual table?

1135


When we use Abstract Class and when we use Interface?where we will implement in real time?

2197


What are protected members in c++?

1149


What is a .h file c++?

1055


What is the use of register keyword with the variables?

949


Write some differences between an external iterator and an internal iterator?

1034


What are the two main components of c++?

1116


What is flag in computer?

1064


Differentiate between the manipulator and setf( ) function?

1224


Is turbo c++ free?

1089


What is a memory leak c++?

1152


Briefly describe a B+ tree. What is bulk loading in it?

1355


What it is and how it might be called (2 methods).

1197


Can we define function inside main in c++?

1033