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

What is hashtable in c# with example?

1022


How can I create a process that is running a supplied native executable (e.g., Cmd.exe)?

1146


Can properties be overloaded in c#?

1014


What do you mean by synchronous and asynchronous operations?

1027


What's the difference between System.String and System..StringBuilder in C#?

1069


Why is static constructor called first?

949


State whether it is true to test a Web service you must create a windows application or Web application to consume this service or not?

999


Give an example of a directcast.

986


Why do we use readonly in c#?

959


Can we inherit abstract class in c#?

963


Why do we use dataset in c#?

1036


Is c# easier than c++?

966


Why do we use interface in c#?

1049


Is it possible to have a static indexer in c#? Allowed in c#.

996


What is c sharp language?

1022