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
When should I declare a function?
What are the differences between new and malloc in C?
Why is sizeof () an operator and not a function?
C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions
How does #define work?
What is the difference between constant pointer and constant variable?
write a program to print data of 5 five students with structures?
What are the different types of objects used in c?
Explain how can you tell whether two strings are the same?
How can I call a function with an argument list built up at run time?
How to compare array with pointer in c?
Tell me about low level programming languages.
WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..
How are variables declared in c?
Are global variables static in c?