write program for palindrome
Answer Posted / kumaran
int a,n,s,x=0;
a=n;
while(n>0)
{
s=n%10;
x=x*10+s;
n=n/10;
}
if(a=n)
printf("palindrome");
else
printf("not palindrome");
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Why would you use pointers in c++?
What is the purpose of the "delete" operator?
What do you mean by function overriding & function overloading in c++?
Describe new operator and delete operator?
Explain the static member function.
What is the difference between #import and #include?
what is the difference between linear list linked representaion and linked representation? what is the purpose of representing the linear list in linked represention ? is it not avoiding rules of linear represention?
What is the real purpose of class – to export data?
What are the differences between new and malloc?
Explain abstraction.
What do you understand by a pure virtual member function?
What is function overloading c++?
What is general form of pure virtual function? Explain?
What doescout<<(0==0) print out a) 0 b) 1 c) Compiler error: Lvalue required
Name the implicit member functions of a class.