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 dynamic variable in c?
What is #ifdef ? What is its application?
What is variables in c?
Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.
main() { printf("hello"); fork(); }
Explain goto?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.
What is the difference between strcpy() and memcpy() function in c programming?
What is the purpose of ftell?
What are the keywords in c?
Explain which function in c can be used to append a string to another string?
the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters
What are comments and how do you insert it in a C program?
What are different types of pointers?
What is the difference between text and binary modes?