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

declare an array of structure where the members of the structure are integer variable float variable integer array char variable access all elements of the structure using dot operator and this pointer operator

2408


Write a program that takes a 5 digit number and calculates 2 power that number and prints it.

2628


Define anonymous class.

1135


What's the hardest coding language?

1067


What is difference between c++ and c ++ 14?

1112


How do you flush a buffer in c++?

1144


List the advantages of inheritance.

1183


How to declare a pointer to an array of integers?

1188


What is the use of endl in c++?

1062


what is oops and list its features in c++?

1112


What flag means?

1013


Describe the process of creation and destruction of a derived class object?

1171


Why do we need function?

1106


What is the best way to declare and define global variables?

1414


What is a block in c++?

1101