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
What is printf () in c?
If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above
Why is c so important?
What is floating point constants?
Explain what are the different file extensions involved when programming in c?
What is main () in c language?
Tell me what are bitwise shift operators?
If the size of int data type is two bytes, what is the range of signed int data type?
Why doesn't C support function overloading?
What is variable initialization and why is it important?
What are the application of void data type in c?
What does %p mean?
A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference
What is getche() function?
what is the structure pointer?