write a program to display reverse of a number using for
loop?

Answer Posted / rockin pro

Answer
# 9 #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;
}

Thanks for Marking this A

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is zero based addressing?

710


How can I make it pause before closing the program output window?

579


What are valid operations on pointers?

666


An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above

656


what are bit fields? What is the use of bit fields in a structure declaration?

1499






Where are c variables stored in memory?

592


What are qualifiers and modifiers c?

546


Combinations of fibanocci prime series

1108


How to establish connection with oracle database software from c language?

1675


Give the rules for variable declaration?

671


What is a ternary operator in c?

652


Is it fine to write void main () or main () in c?

546


When should I declare a function?

623


What is wild pointer in c?

603


Difference between pass by reference and pass by value?

658