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 are enumerations in C
What is the heap in c?
What is advantage of pointer in c?
Explain #pragma statements.
What is else if ladder?
Explain enumerated types in c language?
Is struct oop?
How do you define a string?
How can you increase the size of a dynamically allocated array?
What are the features of the c language?
What is openmp in c?
what are bit fields? What is the use of bit fields in a structure declaration?
When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?
How does selection sort work in c?
What is the difference between struct and union in C?