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 / darren chang

bool palind(string input)
{
int j=input.length()-1;
int i=0;
while(i<j)
{
if(input[i]!=input[j])
return false;
i++;
j--;
}
return true;
}

Is This Answer Correct ?    23 Yes 24 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are compilers in c++?

1071


What are c++ tokens?

1061


What is pointer in c++ with example?

1077


Why is "using namespace std;" considered bad practice?

1104


How do pointers work?

1185


How do c++ struct differs from the c++ class?

1202


What is #include iostream h in c++?

1165


What is recursion?

2192


How the virtual functions maintain the call up?

1213


What is a stack c++?

1014


What is c++ and its uses?

1232


Differentiate between a template class and class template in c++?

1101


What is the difference between ++ count and count ++?

1147


What is meant by forward referencing and when should it be used?

1021


Please explain class & object in c++?

1095