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 are "class access modifiers" in C#?
What is a method c#?
How many keyword present in C# language ?
What is the difference between readkey and readline in c#?
Explain the difference between private and shared assembly?
Can a struct have a default constructor (a constructor without parameters) or a destructor in c#?
What is arraylist class in c#?
Which debugging tools you can use in the .NET ssSDK?
What does clr stand for?
What is the difference between static and private constructor?
What is the implicit name of the parameter that gets passed into the set method/property of a class?
How many types of collections are there in c#?
What is the difference between gettype and typeof in c#?
What is the difference between abstract and abstraction?
How many bytes is an int c#?