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

differentiate built-in functions and user – defined functions.

856


Why c is called object oriented language?

800


Write a C program that will accept a hexadecimal number as input and then display a menu that will permit any of the following operations to be carried out: Display the hexadecimal equivalent of the one's complement. (b) Carry out a masking operation and then display the hexadecimal equivalent of the result. (c) Carry out a bit shifting operation and then display the hexadecimal equivalent of the result. (d) Exit. If the masking operation is selected, prompt the user lor the type of operation (bitwise and, bitwise exclusive or, or bitwise or) and then a (hexadecimal) value for the mask. If the bit shifting operation is selected. prompt the user for the type of shift (left or right), and then the number of bits. Test the program with several different (hexadecimal) input values of your own choice.

5094


Explain about the functions strcat() and strcmp()?

781


How can you determine the maximum value that a numeric variable can hold?

871


Is multithreading possible in c?

748


Explain why can’t constant values be used to define an array’s initial size?

1087


What is the best way of making my program efficient?

759


List the difference between a 'copy constructor' and a 'assignment operator' in C?

842


Should I learn data structures in c or python?

750


what are the advantages of a macro over a function?

863


How can I convert a number to a string?

820


Write a program to swap two numbers without using third variable in c?

841


What are the differences between new and malloc in C?

799


what will be the output for the following main() { printf("hi" "hello"); }

10091