Answer Posted / irfan khan
string s1="";
string s2="";
int len=s1.length;
for(int i=0;i<len-1;i++)
{
s2=s1.substring[i]+s2;
console.writeline(s2);
}
if(strcmp(s1,s2)==0)
{
console.writeline("given sting is palindrome");
}
else
console.writeline("not palindrome");
| Is This Answer Correct ? | 12 Yes | 8 No |
Post New Answer View All Answers
Does a class need a constructor c#?
What is a c# delegate?
What is the property of class?
Is a valid int value?
Can int be null c#?
What is a delegate how is it type safe?
What is the major difference between a custom control and user control?
What is the use of table aliases?
What is an indexer in c#?
How Is The Dll Hell Problem Solved In .net?
Why main is static in c#?
What is gac? How to put assembly in gac?
What is the root element of an xml file?
Contrast System.String and System.Text.StringBuilder classes?
What is hashtable in c# net with example?