Write code for palindrome?

Answer Posted / sathish

private bool CheckPalindrome(string myString)
{
string strrevs="";
foreach char c in myString
{
strrevs= c + strrevs;
}

if (strrevs==myString)

return true;
else
return false;
}

Is This Answer Correct ?    29 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are c# i/o classes? What are the commonly used i/o classes?

513


What is a virtual property. Give an example?

515


What is a console operator?

486


What is the difference between string and stringbuilder in c#?

469


What is an int c#?

478






What are reflections in c#?

489


Define multicast delegate in c#?

512


What is a method signature?

527


Can destructors have access modifiers?

562


Is string immutable in c#?

568


What is entity framework c#?

455


What are the types of assembly available

503


What is the difference between a class and an object c#?

472


Is is possible to force garbage collector to run?

522


hi, is compulsory .net knowledge need for biztalk server training. if need, how far?.tell me some info abt real time instructors in hyd or other?

1059