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 the advantages of pointers?

1017


What are static member functions?

1050


What is problem with overriding functions?

1011


When should you use global variables?

1150


If you want to share several functions or variables in several files maitaining the consistency how would you share it?

931


what is the difference between linear list linked representaion and linked representation? what is the purpose of representing the linear list in linked represention ? is it not avoiding rules of linear represention?

2290


When should overload new operator on a global basis or a class basis?

1023


What is ios :: in in c++?

1002


Why was c++ made?

1042


What are the c++ access specifiers?

1347


Differentiate between declaration and definition.

988


Can I learn c++ as my first language?

1056


What's the order in which the objects in an array are destructed?

1342


What is a constructor in c++ with example?

1073


Write about c++ storage classes?

1151