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
Write the syntax for catching an exception in c#?
What is the concept of strong names?
What is instantiating a class in c#?
What is the difference between == and object.equals?
What are the return types in c#?
What is jagged array?
What is xaml in c#?
Why do we need interfaces in c#?
What is tochararray in c#?
What is indexer c#?
What is firstordefault c#?
What is parallel foreach in c#?
What is jit (just in time)?
Why is dll used?
What is system console writeline in c#?