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 functions c#?
How many types of namespaces available in version4?
What is difference between string and stringbuffer in c#?
What are managed providers?
What is the difference between asp net and c#?
How do you create empty strings in c#?
Explain 'structure padding'?
What are mutable and immutable types in c#?
Define the term immutable ?
What is difference between var dynamic and object in c#?
What are data types examples?
Is c# a technology?
What is the advantage of extension method in c#?
What is msil in c#?
Where is the main method in c#?