adspace
Answer Posted / a.prathyusha
#include<stdio.h>
void main()
{
int n,s=0,r,n1;
printf("enter any number:");
scanf("%d",&n);
n1=n;
while(n>0)
{
r=n%10;
s=(s*10)+r;
n=n/10;
}
if(s==n1)
printf("palindrom");
else
printf("not palindrom");
}
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
What is pointer to pointer in c with example?
Differentiate between null and void pointers.
List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.
What is the difference between union and anonymous union?
will u please send me the placement papers to my mail???????????????????
Do you know the difference between malloc() and calloc() function?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
How do you convert strings to numbers in C?
i have a written test for microland please give me test pattern
Write a C program that will accept a hexadecimal number as input and then display a menu that will permit any of the following operations to be carried out: Display the hexadecimal equivalent of the one's complement. (b) Carry out a masking operation and then display the hexadecimal equivalent of the result. (c) Carry out a bit shifting operation and then display the hexadecimal equivalent of the result. (d) Exit. If the masking operation is selected, prompt the user lor the type of operation (bitwise and, bitwise exclusive or, or bitwise or) and then a (hexadecimal) value for the mask. If the bit shifting operation is selected. prompt the user for the type of shift (left or right), and then the number of bits. Test the program with several different (hexadecimal) input values of your own choice.
How do you determine the length of a string value that was stored in a variable?
What is variable initialization and why is it important?
Is int a keyword in c?
write a program to find out prime number using sieve case?
How can I implement sets or arrays of bits?