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

#include<iostream.h>
#include<conio.h>
main()
{
char c[8];
cout<<"enterd hte world of polindorom";
cin>>c;
int i=strlen(c);
i=i-1;
int flag=0;
for(int j=0;j<=1;j++)
{
if(c[j]==c[i])
{
flag=1;
}
else
{
int flag=0;
break;
}
}
i--;
if(flag==1)
{
cout<<"your option is polindorome";
}
else
{
cout<<"your option is not polindorome";
}
getch();
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between structures and unions?

1027


Arrange Doubly linked list in the ascending order of its integral value and replace integer 5 with 7?

4080


What is the use of "new" operator?

1092


When is the destructor called?

990


What is the C-style character string?

1094


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

2154


Explain the register storage classes in c++.

1160


Write a function to find the nth item from the end of a linked list in a single pass.

934


What is a flag in c++?

1015


What is the full form of c++?

1277


Define whitespace in C++.

1154


What are references in c++? What is a local reference?

993


Explain how the virtual base class is different from the conventional base classes of the opps.

1117


What is atoi?

930


Does improper inheritance have a potential to wreck a project?

1098