adspace
write a program to display reverse of a number using for
loop?
Answer Posted / narendra
It is simple.use this and it works
#include <stdio.h>
#include <conio.h>
int main()
{
int rem,num;
clrscr();
printf("Enter the number\n");
scanf("%d",&num);
for (num= num; num > 0; num = num/10)
{
rem = num % 10;
printf("%d",rem);
}
return 0;
}
| Is This Answer Correct ? | 14 Yes | 11 No |
Post New Answer View All Answers
Do you know the difference between malloc() and calloc() function?
Explain the difference between null pointer and void pointer.
what is ur strangth & weekness
Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?
Is int a keyword in c?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
write a program to find out prime number using sieve case?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?
can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......
ATM machine and railway reservation class/object diagram
How can I implement sets or arrays of bits?
The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?
In C programming, how do you insert quote characters (‘ and “) into the output screen?
swap 2 numbers without using third variable?