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 difference between array and structure in c?
What is the use of a conditional inclusion statement in C?
Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result
What is wrong in this statement? scanf(ā%dā,whatnumber);
Explain how do you print only part of a string?
What is meant by keywords in c?
Tell me about low level programming languages.
Tell me when would you use a pointer to a function?
Explain logical errors? Compare with syntax errors.
#include
How main function is called in c?
Explain can the sizeof operator be used to tell the size of an array passed to a function?
Explain why C language is procedural?
`write a program to display the recomended action depends on a color of trafic light using nested if statments
Why c is called object oriented language?