to find out the reverse digit of a given number
Answer Posted / jet lee
#include<stdio.h>
int rev(int y);
int main()
{
int x;
printf("\n please enter the number:\n");
scanf("%d",&x);
rev(x);
return 0;
}
int rev(int y)
{
int i;
do
{
i=(y%10);
printf("%d",i);
y=(y/10);
}while(y>0);
}
| Is This Answer Correct ? | 17 Yes | 9 No |
Post New Answer View All Answers
What 'lex' does?
What are variables and it what way is it different from constants?
how can use subset in c program and give more example
When is a void pointer used?
Should I learn c before c++?
Where are c variables stored in memory?
Is it possible to use curly brackets ({}) to enclose single line code in c program?
What are linked lists in c?
A routine usually part of the operation system that loads a program into memory prior to execution a) linker b) loader c) preprocessor d) compiler
The statement, int(*x[]) () what does in indicate?
What's the best way of making my program efficient?
Explain how can I make sure that my program is the only one accessing a file?
What is %d called in c?
What are the parts of c program?
What is table lookup in c?