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
Why does everyone say not to use gets?
What is the purpose of the statement: strcat (S2, S1)?
Why is c called a mid-level programming language?
What are the loops in c?
What is the use of ?: Operator?
What is the difference between single charater constant and string constant?
What is the difference between text and binary i/o?
Differentiate between static and dynamic modeling.
What are the various types of control structures in programming?
What is c basic?
Is it acceptable to declare/define a variable in a c header?
What is quick sort in c?
What is queue in c?
Explain how do you sort filenames in a directory?
Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?