Print all the palindrome numbers.If a number is not
palindrome make it one by attaching the reverse to it.
eg:123
output:123321 (or) 12321
Answer Posted / ankush kumar mittal
#include<stdio.h>
void main()
{
int rev=0,a,b,c;
scanf("%d",a);
if(a=!0)
{
b=a%10;
a=a/10;
rev=rev*10+b;
}
}
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
What is scope rule in c?
What is the purpose of sprintf?
What does *p++ do?
Is it better to use malloc() or calloc()?
What does %c do in c?
What are keywords c?
how to count no of words,characters,lines in a paragraph.
What are qualifiers in c?
can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......
What is sizeof in c?
Explain what are multibyte characters?
Can include files be nested? How many levels deep can include files be nested?
explain how do you use macro?
hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .
why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above