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
Explanation on Generic?
How do I unload an application domain?
How do you create user defined data types in c#?
Explain how is the dll hell problem solved in .net?
In which order the constructor is called for an inherited class?
How can you sort strings in array that are passed to method as arguments?
Is static class thread safe in c#?
What is native image generator (ngen.exe)?
Does unity use c++ or c#?
What are the delegates in c#?
explain the features of static/shared classes.
What is the size of a decimal?
What is difference between === and ==?
What is call back method?
What do you understand by the terms datareader object and dataset object?