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 / karthi sanjivi

class Program
{
static void Main()
{
Console.WriteLine("Please Enter Value : ");
string _strValue = Console.ReadLine();
bool res = CheckPalindrome(_strValue);
Console.WriteLine(res);
Console.ReadLine();
}

private static bool CheckPalindrome(string _strValue)
{
string _strTempValue = _strValue;
string _strRevValue = string.Empty;
char[] ch = _strTempValue.ToCharArray();
Array.Reverse(ch);
_strRevValue = new string(ch);
return (_strRevValue == _strValue);
}
}

Is This Answer Correct ?    7 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Distinguish between a class and struct?

914


How do I unload an application domain?

939


Is it possible to have different access modifiers on the get/set methods of a property?

1016


How to find the current application file path while runtime?

977


What is the usage of OLE?

1005


What are data types in C#?

978


What is int32 maxvalue?

947


Does c# have its own class library?

969


Is unboxing an implicit conversion?

1020


Why is it efficient to use System.string under System.Text.StringBuilder ?

976


What is data hiding in c#?

899


what is c# command?

976


What are custom exceptions in C#?

1018


What is difference between an reference type and value type in C#?

1041


What are Types of assemblies that can be created in dotnet

1027