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 code for palindrome?

Answer Posted / kautilya

bool CheckPalindrom(string MyString)
{
string strChar1 = "";
string strChar2 = "";
for (int i = 0; i < ((MyString.Length - 1) / 2);
i++)
{
strChar1 = MyString.Substring(i, 1);
strChar2 = MyString.Substring((MyString.Length -
(i+1)), 1);
if (strChar1 != strChar2)
return false;
}
return true;
}

Is This Answer Correct ?    11 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is class sortedlist underneath?

906


What is the correct way of declaring an xml namespace?

792


What is ulong in c#?

997


Why do we use Design Pattern in C#?

984


What are scriptable objects?

876


What are the fundamental principles of oo programming?

1064


Does c# support a variable number of arguments?

955


For methods inside the interface why can’t you specify the accessibility modifier?

915


What is IL / CIL / MSIL?

1068


what is inheritance and an example in vb.net and c# of when you might use it?

909


Can you explain template pattern?

943


What is private variable?

850


What is the use of flag in c#?

893


What are the 3 different types of arrays?

974


What is cookies in c# asp net?

897