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 static variable in c#?

965


Is char * null terminated?

949


Can you declare struct members as protected?

907


What is type cast in C#?

1006


Which controls do not have events?

1031


Why do we need generics?

933


what is IComparable

1001


We cannot create instances of static classes. Can we have constructors for static classes?

1018


Is java better than c sharp?

968


What is the use of thread join in c#?

922


What is the difference between list and array in c#?

1049


What is the use of delegate?

973


Can I do things in il that I can't do in c#?

923


Which are the loop types available in c#?

956


Why do we need delegates?

878