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
How do I use void main?
What are the primitive data types in c?
How do you write a program which produces its own source code as output?
What is a dynamic array in c?
What is void main () in c?
What is the scope of global variable in c?
Explain main function in c?
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
Explain #pragma statements.
What is signed and unsigned?
what is ur strangth & weekness
hi send me sample aptitude papers of cts?
What are pointers?
Can you assign a different address to an array tag?
Where register variables are stored in c?