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

what are enumerations in C

716


What is the heap in c?

635


What is advantage of pointer in c?

681


Explain #pragma statements.

598


What is else if ladder?

603






Explain enumerated types in c language?

598


Is struct oop?

573


How do you define a string?

649


How can you increase the size of a dynamically allocated array?

636


What are the features of the c language?

636


What is openmp in c?

602


what are bit fields? What is the use of bit fields in a structure declaration?

1494


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?

797


How does selection sort work in c?

611


What is the difference between struct and union in C?

562