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

How do I use void main?

629


What are the primitive data types in c?

571


How do you write a program which produces its own source code as output?

604


What is a dynamic array in c?

589


What is void main () in c?

723






What is the scope of global variable in c?

551


Explain main function in c?

623


What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file

663


Explain #pragma statements.

601


What is signed and unsigned?

639


what is ur strangth & weekness

1815


hi send me sample aptitude papers of cts?

1650


What are pointers?

629


Can you assign a different address to an array tag?

696


Where register variables are stored in c?

548