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
Why is c# a good programming language?
Can the nested class access, the containing class. Give an example?
What is the difference between “finalize” and “finally” methods in c#?
What are generics in c#.net?
What's the difference between class and object?
Enlist the different types of classes in c#?
How do I open the console?
What do you mean by saying a "class is a reference type"?
What do you know about device context?
Can you store different types in an array in c#?
What is the differences between datagrid, datalist and repeater in .net?
Write a C# program to find the Factorial of n
What is extension method in c# and how to use them?
Is as operator in c#?
Are cao stateful in nature?