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
Distinguish between a class and struct?
How do I unload an application domain?
Is it possible to have different access modifiers on the get/set methods of a property?
How to find the current application file path while runtime?
What is the usage of OLE?
What are data types in C#?
What is int32 maxvalue?
Does c# have its own class library?
Is unboxing an implicit conversion?
Why is it efficient to use System.string under System.Text.StringBuilder ?
What is data hiding in c#?
what is c# command?
What are custom exceptions in C#?
What is difference between an reference type and value type in C#?
What are Types of assemblies that can be created in dotnet