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
How can I invoke another program or command and trap its output?
What is the significance of scope resolution operator?
How will you find a duplicate number in a array without negating the nos ?
Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?
What the different types of arrays in c?
What is openmp in c?
How to find a missed value, if you want to store 100 values in a 99 sized array?
What is the easiest sorting method to use?
What is spark map function?
Can you write the function prototype, definition and mention the other requirements.
Is c still used?
What is the use of static variable in c?
how to capitalise first letter of each word in a given string?
Explain union. What are its advantages?
What is actual argument?