write a program to display reverse of a number using for
loop?
Answer Posted / rajesh.k
int main()
{
int num, i;
printf("Enter the number :\n");
scanf("%d",&num);
printf("The reverse number is :\n");
for(i = num;i >= 0; i--) {
printf("%d",i);
printf("\n");
}
getch();
}
| Is This Answer Correct ? | 20 Yes | 21 No |
Post New Answer View All Answers
Why do we need arrays in c?
Why is not a pointer null after calling free? How unsafe is it to use (assign, compare) a pointer value after it is been freed?
why arguments can generally be passed to functions a) sending the values of the arguments b) sending the addresses of the arguments c) a & b d) none of the above
Why can't I perform arithmetic on a void* pointer?
What is indirection in c?
What is the value of a[3] if integer a[] = {5,4,3,2,1}?
we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called a) calls by reference b) calls by value c) calls by zero d) none of the above
What is nested structure in c?
WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..
code for find determinent of amatrix
How can you restore a redirected standard stream?
Can we access array using pointer in c language?
Give the rules for variable declaration?
What do you mean by a sequential access file?
What is the use of a semicolon (;) at the end of every program statement?