write program for palindrome
Answers were Sorted based on User's Feedback
Answer / felix
#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 ? | 242 Yes | 354 No |
What do you mean by persistent and non persistent objects?
Differentiate between a constructor and a destructor in c++.
Explain the isa and hasa class relationships. How would you implement each?
What are guid?
What is the c++ code?
What is exception handling in C++?
How can you differentiate between inheritance and implementation in c++?
Assume studentNames and studentIDs are two parallel arrays of size N that hold student data. Write a pseudocode algorithm that sorts studentIDs array in ascending ID number order such that the two arrays remain parallel.
What is a custom exception?
What is the difference between "calloc" and "malloc"?
#include<iostream.h> void main() { class x { public: int func(int) { cout<<"cool"; return 1; } } }
Explain public, protected, private in c++?