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
What is static variable in c#?
Is char * null terminated?
Can you declare struct members as protected?
What is type cast in C#?
Which controls do not have events?
Why do we need generics?
what is IComparable
We cannot create instances of static classes. Can we have constructors for static classes?
Is java better than c sharp?
What is the use of thread join in c#?
What is the difference between list and array in c#?
What is the use of delegate?
Can I do things in il that I can't do in c#?
Which are the loop types available in c#?
Why do we need delegates?