how to find out the reverse number of a digit if it is
input through the keyboard?
Answer Posted / vignesh1988i
A SMALL IM IMPLEMENTATION OF POINTERS.
#include<stdio.h>
#include<conio.h>
void main()
{
int n,*k,l;
printf("enter the number :");
scanf("%d",&n);
k=&n;
for(int i=1;*k>0;i++)
{
l=(*k)%10;
*k=(*k)/10;
printf("%d",l);
}
getch();
}
Is This Answer Correct ? | 10 Yes | 1 No |
Post New Answer View All Answers
Dont ansi function prototypes render lint obsolete?
Program to find the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6)
What is the size of a union variable?
In c programming typeing to occupy the variables in memory space. if not useing the variable the memory space is wasted.ok, how to avoid the situation..? (the variable is used & notused)
What is the easiest sorting method to use?
What is #include cctype?
Explain threaded binary trees?
ATM machine and railway reservation class/object diagram
What is a sequential access file?
What does node * mean?
Why is c called a mid-level programming language?
What is a node in c?
Difference between exit() and _exit() function?
What are the types of pointers in c?
What is hash table in c?