Answer Posted / rajender
private bool CheckPalindrome(string myString)
{
int First;
int Second;
First = 0;
Second = myString.Length - 1;
while (First < Second)
{
if(myString.Substring(First,1) == myString.Substring
(Second,1))
{
First ++;
Second --;
}else{
return false;
}
}
return true;
}
Is This Answer Correct ? | 17 Yes | 6 No |
Post New Answer View All Answers
Can you access a hidden base class method in the derived class?
Why do we use Design Pattern in C#?
What is xor operator in c#?
Explain the three services model (three-tier application). Presentation (ui), business (logic and underlying code) and data (from storage or other sources).
Explain About ADO and its objects
What is type cast in C#?
What is datetime minvalue in c#?
What is continue in c#?
What is reference c#?
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?
What is the use of table aliases?
What are the problem with .NET generics?
What are different types of classes in c#?
What is application object in c#?
What is strong data type in c#?