write a program to display reverse of a number using for
loop?
Answer Posted / radhika
#include <stdio.h>
int main(void) {
int num[4], i;
printf("Enter the number :
");
printf("The reverse number is :
");
for(i = 4;i >= 0; i--) {
printf("%d",i);
printf("
");
}
return 0;
}
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What are pointers? Why are they used?
What is malloc return c?
Write a program to find factorial of a number using recursive function.
Why c is called a middle level language?
What is pointer to pointer in c?
How can I convert a number to a string?
Define recursion in c.
Differentiate between functions getch() and getche().
What is LINKED LIST? How can you access the last element in a linked list?
Can you apply link and association interchangeably?
How do you determine a file’s attributes?
What is structure of c program?
What is the use of typedef in structure in c?
What is a newline escape sequence?
Explain logical errors? Compare with syntax errors.