write program for palindrome
Answer Posted / bhavesh vala
#include<stdio.h>
#include<conio.h>
void main()
{
int n,s=0,m;
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 ? | 1 Yes | 2 No |
Post New Answer View All Answers
What is data structure in c++?
Write about the various sections of the executable image?
Can a class be static in c++?
What is the need of a destructor?
What does return 0 do in c++?
what is software cycle? What is a mission critical system ? What is the important aspect of a real-time system ? Explain the difference between microkernel and macro kernel. Give an example of microkernel.Why paging is used ? Which is the best page replacement algo and Why ? What is software life cycle ? How much time is spent usually in each phases and why Which one do U want to work if selected in Honeywell ? Which are the different types of testing ? What is a distributed system ? Some questions about CSP. Which languages do U know ? What are the differences between Pascal and C. questions from Compiler construction and Lisp. Which are the different computer architecture? What is the requirement in MIMD ? What is the difference between RISC and CISC processors ? Difference between loosely coupled and tightly coupled systems ? What is an open system?
Explain the difference between new() and malloc() in c++?
What is this weird colon-member (" : ") syntax in the constructor?
What is the use of typedef?
What are the advantages of early binding?
What are enumerations?
Explain how an exception handler is defined and invoked in a Program.
Explain class invariant.
What do you mean by inheritance in c++? Explain its types.
What is polymorphism in c++? Explain with an example?