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
How many types of constructors are available in c#?
What do you mean by object pooling?
Is string nullable c#?
What is stringbuilder c#?
Are c# destructors the same as c++ destructors?
What does addressof operator do in background ?
When a switch is said to be congested?
What is an xsd file?
Which attribute adorn a test class to be picked up by the NUnit GUI in the NUnit test framework?
Where do we use serialization in c#?
What is literal control
Write a console application and implement the ternary operator to decide whether the age a user entered after being prompted is allowed to vote or not(given that only citizens between 18 and 120 years only inclusive can vote). Use exception handling for non-numerical input.
Define satellite Assembly in .NET?
What is Co- and Contra-Variance in C#?
Can you describe iuknown interface in short?