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
differentiate built-in functions and user – defined functions.
Why c is called object oriented language?
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.
Explain about the functions strcat() and strcmp()?
How can you determine the maximum value that a numeric variable can hold?
Is multithreading possible in c?
Explain why can’t constant values be used to define an array’s initial size?
What is the best way of making my program efficient?
List the difference between a 'copy constructor' and a 'assignment operator' in C?
Should I learn data structures in c or python?
what are the advantages of a macro over a function?
How can I convert a number to a string?
Write a program to swap two numbers without using third variable in c?
What are the differences between new and malloc in C?
what will be the output for the following main() { printf("hi" "hello"); }