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 does the characters “r” and “w” mean when writing programs that will make use of files?
What is header file in c?
develop algorithms to add polynomials (i) in one variable
What is a method in c?
Explain the difference between exit() and _exit() function?
Can variables be declared anywhere in c?
how to introdu5ce my self in serco
I need previous papers of CSC.......plz help out by posting them.......
how could explain about job profile
Is c procedural or functional?
What do you mean by keywords in c?
Which header file is essential for using strcmp function?
What is the value of a[3] if integer a[] = {5,4,3,2,1}?
If i have an array 0 to 99 i.e,(Size 100) I place the values 1 to 100 randomly like a[0]=29,a[1]=56 upto array[99].. the values are only between 1 to 100. getting the array values by using scanf.. If i entered one wrong element value line a[56]=108. how can i find it.. and also how to find the missing value in 1 to 100.. and i want to replace the missing values.. any one of them know please post your answer..
What are logical errors and how does it differ from syntax errors?