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 is private variable?

486


Describe ado.net?

580


Does c# have functions?

468


What is mean by c#?

485


What is assembly manifest?

528






What does dbml mean?

507


What is generic collection in c#?

506


What is interface c#?

464


Why do canadians say zed?

524


What is the namespace for datatable in c#?

500


List the 5 different access modifiers in c#?

510


What is “using” statement in c#?

475


Are arraylist faster or arrays?

492


What is the c# equivalent of c++ catch (...), Which was a catch-all statement for any possible exception?

500


How many bytes is an int c#?

496