write a program to display reverse of a number using for
loop?
Answer Posted / rakesh ranjan
#include<conio.h>
#include<stdio.h>
main()
{
int x,n,i;
printf("entre the number");
scanf("%d",&n);
for(;n>0;)
{
x=n%10;
printf("%d",x);
n/=10;
}
getch();
}
| Is This Answer Correct ? | 15 Yes | 9 No |
Post New Answer View All Answers
Tell us something about keyword 'auto'.
What is a string?
What does node * mean?
What is cohesion in c?
What is this infamous null pointer, anyway?
WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.
What is the time and space complexities of merge sort and when is it preferred over quick sort?
What does d mean?
What is a class c rental property?
How do I get a null pointer in my programs?
How #define works?
Write a C program linear.c that creates a sequence of
processes with a given length. By
sequence it is meant that each created process has exactly
one child.
Let's look at some example outputs for the program.
Here the entire process sequence consists of process 18181:
Sara@dell:~/OSSS$ ./linear 1
Creating process sequence of length 1.
18181 begins the sequence.
An example for a sequence of length three:
Sara@dell:~/OSSS$ ./linear 3
Creating process sequence of length 3.
18233 begins the sequence.
18234 is child of 18233
18235 is child of 18234
........ this is coad .... BUt i could not compleate it .....:(
#include
Tell me when would you use a pointer to a function?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)
Subtract Two Number Without Using Subtraction Operator