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
Write a code on reverse string and its complexity.
What is volatile variable in c with example?
What is null pointer in c?
write a program to concatenation the string using switch case?
What do you mean by a sequential access file?
What is a file descriptor in c?
What are global variables and how do you declare them?
What is scanf () in c?
What happens if you free a pointer twice?
What is the size of enum in bytes?
What is a list in c?
#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }
Can two or more operators such as and be combined in a single line of program code?
Why void is used in c?
What is exit() function?