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
Is array value type in c#?
Which programming language is best for desktop applications?
How do I create a .exe file?
What is difference between value and reference types in C#.NET
Can we overload indexer in c#?
In object oriented programming, how would you describe encapsulation in c#?
What operator means?
What language do desktop applications use?
What is the diff between System.String and System.Text.StringBuilder classes?
What does using do in c#?
Which is better python or c#?
What is main thread in c#?
What are the Types of instancing properties and explain each. Explain the difference between multiuse,singleuse and globalmultiuse and which is default
What is the advantage of generics in c#?
Can abstract classes be final?