write program for palindrome
Answer Posted / hillol bhattacharya
#include<stdio.h>
#include<conio.h>
void main()
{
int n,s=0,m,r;
clrscr();
printf("enter any no");
scanf("%d",&n);
m=n;
while(n>0)
{
r=n%10;
s=s*10+r;
n=n/10;
}
if(m==n)
printf("the no is palindrome");
else
printf("no is not palindrome");
getch();
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the various oops concepts in c++?
What is near, far and huge pointers? How many bytes are occupied by them?
What is the extension of c++?
What is constructor in C++?
Do you know what are static and dynamic type checking?
Does c++ have a hash table?
Explain deep copy?
How will you call C functions from C ++ and vice-versa?
What is an iterator class in c++?
What is the auto keyword good for in c++?
Explain this pointer?
Do vectors start at 0?
Explain how an exception handler is defined and invoked in a Program.
Differentiate between late binding and early binding. What are the advantages of early binding?
What is linked list in c++?