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


Please Help Members By Posting Answers For Below Questions

Why does everyone say not to use gets?

705


What is the purpose of the statement: strcat (S2, S1)?

722


Why is c called a mid-level programming language?

839


What are the loops in c?

684


What is the use of ?: Operator?

771






What is the difference between single charater constant and string constant?

729


What is the difference between text and binary i/o?

667


Differentiate between static and dynamic modeling.

717


What are the various types of control structures in programming?

703


What is c basic?

715


Is it acceptable to declare/define a variable in a c header?

764


What is quick sort in c?

696


What is queue in c?

662


Explain how do you sort filenames in a directory?

710


Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?

754