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
What is virtual class in C#?
Can we customize the serialization process?
Does google use c#?
What is thread life cycle in c#?
Explain how do you directly call a native function exported from a dll?
In C#, explain the difference between overloading and overriding.
Why is aws serverless?
Is boxing an implicit conversion?
What is oledb in c#?
Is java better than c sharp?
What is the difference between parse and tryparse in c#?
Explain what is an interface in c#?
Explain About namespaces
What are mutable and immutable types in c#?
What is a collection class in c#?