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
what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?
What is scanf_s in c?
What is an array? What the different types of arrays in c?
How can I get the current date or time of day in a c program?
What is static memory allocation?
How can this be legal c?
Does free set pointer to null?
In C language, a variable name cannot contain?
what type of questions arrive in interview over c programming?
#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} wat would be the output??
Explain what is the difference between #include and #include 'file' ?
Write a c program to build a heap method using Pointer to function and pointer to structure ?
Explain how can I pad a string to a known length?
What is a pointer variable in c language?
What does the characters “r” and “w” mean when writing programs that will make use of files?