how to find out the reverse number of a digit if it is
input through the keyboard?
Answer Posted / amrit
int main()
{
int a = 5678;
int temp=0,rev;
while((a%10)!=0)
{
rev =a%10;
a=a/10;
temp= temp*10+ rev;
}
return 0;
}
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
Explain what are bus errors, memory faults, and core dumps?
What are the c keywords?
Why can’t we compare structures?
Explain what are the different data types in c?
What is sizeof array in c?
What is the purpose of 'register' keyword?
Where we use clrscr in c?
List the difference between a 'copy constructor' and a 'assignment operator' in C?
Whats s or c mean?
what is a NULL Pointer? Whether it is same as an uninitialized pointer?
what are enumerations in C
Explain how can I convert a number to a string?
I have seen function declarations that look like this
Why we use conio h in c?
Explain how can you tell whether a program was compiled using c versus c++?