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

I want explanation for this assignment: how to connect mysql database using c/c++,please explain this detailly?

2065


Is java based off c++?

967


How delete [] is different from delete?

1007


Is swift faster than c++?

1017


Do you know what are static and dynamic type checking?

1061


Can notepad ++ run c++?

1073


Define pointers?

1039


Tell me difference between constant pointer and pointer to a constant.

1186


How to allocate memory dynamically for a reference?

1039


What are the 2 main types of data structures?

1117


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

1162


What is dynamic and static typing?

1180


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

1328


What is a modifier in c++?

1134


What is c++ stringstream?

1099