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
Explain more on CLR
What is the benefit of using interface in c#?
Why abstract class is not instantiated in c#?
How can I check the type of an object at runtime?
What is predicate builder?
What are access modifiers in c#?
What is the difference between console application and windows application?
How Is The Dll Hell Problem Solved In .net?
What is polymorphism c# example?
Can we maintain state in webservice?
What is meant by clr?
Explain the constructor in c#.
What is encapsulation in csharp?
What is the difference between system.text.stringbuilder and system.string?
Explain attributes in c#?