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

Dont ansi function prototypes render lint obsolete?

812


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)

907


What is the size of a union variable?

786


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)

1866


What is the easiest sorting method to use?

818


What is #include cctype?

816


Explain threaded binary trees?

896


ATM machine and railway reservation class/object diagram

4996


What is a sequential access file?

864


What does node * mean?

954


Why is c called a mid-level programming language?

953


What is a node in c?

731


Difference between exit() and _exit() function?

888


What are the types of pointers in c?

736


What is hash table in c?

775