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 is access modifier in c#?
Suppose you have already existing application with Visual Studio 6 (VB 6, InterDev 6) and this application utilizes Windows 2000 COM+ transaction services. With this example how can you approach migrating this application to .NET?
What is JIT (just in time)? how it works?
Define a partial class?
What is yield c#?
if you do have a stack overflow profile.what is your ranking?
What are the features of c#?
How string definitions will prevent escaping on backslashes in C#?
What is interface inheritance in c#?
What is the difference between int.parse and int.tryparse methods?
What is the purpose of a namespace?
What is the difference between array and arraylist c#?
What are verbatim strings in c#?
what is a static constructor?
What is the use of nullable types in c#?