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


Please Help Members By Posting Answers For Below Questions

When should I declare a function?

820


What are the differences between new and malloc in C?

795


Why is sizeof () an operator and not a function?

761


C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions

799


How does #define work?

835


What is the difference between constant pointer and constant variable?

943


write a program to print data of 5 five students with structures?

1822


What are the different types of objects used in c?

732


Explain how can you tell whether two strings are the same?

791


How can I call a function with an argument list built up at run time?

894


How to compare array with pointer in c?

825


Tell me about low level programming languages.

854


WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..

1781


How are variables declared in c?

819


Are global variables static in c?

862