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
What is the difference between add and addrange in c#?
Can a private virtual method can be overridden?
list the steps in code compilation in c#?
What is difference between static and readonly in c#?
Define a jagged array in c#?
What is thread life cycle in c#?
Does the system.exception class have any cool features?
Define a manifest in .net?
What does exclamation mark mean c#?
What is string pool in c#?
what is an exception in .net?
What is a .aspx file?
Can bool be null c#?
What are constructors in c#?
What is using keyword in C#?