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 / rajender

private bool CheckPalindrome(string myString)

{

int First;

int Second;

First = 0;

Second = myString.Length - 1;

while (First < Second)

{

if(myString.Substring(First,1) == myString.Substring
(Second,1))

{

First ++;

Second --;

}else{

return false;

}

}

return true;

}

Is This Answer Correct ?    17 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is access modifier in c#?

950


Suppose you have already existing application with Visual Studio 6 (VB 6, InterDev 6) and this application utilizes Windows 2000 COM+ transaction services. With this example how can you approach migrating this application to .NET?

940


What is JIT (just in time)? how it works?

1043


Define a partial class?

939


What is yield c#?

924


if you do have a stack overflow profile.what is your ranking?

1923


What are the features of c#?

977


How string definitions will prevent escaping on backslashes in C#?

1032


What is interface inheritance in c#?

966


What is the difference between int.parse and int.tryparse methods?

1093


What is the purpose of a namespace?

908


What is the difference between array and arraylist c#?

1157


What are verbatim strings in c#?

964


what is a static constructor?

1263


What is the use of nullable types in c#?

1042