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
How can a string be converted to a number?
Write a program with dynamically allocation of variable.
Linked lists -- can you tell me how to check whether a linked list is circular?
List out few of the applications that make use of Multilinked Structures?
What is the difference between union and anonymous union?
What is the significance of an algorithm to C programming?
What are the 5 types of inheritance in c ++?
What is an auto keyword in c?
Write a program which returns the first non repetitive character in the string?
Can you subtract pointers from each other? Why would you?
Can we declare a function inside a function in c?
hi folks i m approching for h1 b interview on monday 8th of august at montreal and i m having little problem in my approval notice abt my bithdate my employer has made a mistake while applying it is 12th january and istead of that he had done 18 the of january do any body have any solution for that if yes how can i prove my visa officer abt my real birthdate it urgent please let me know guys thaks dipesh patel
What is a floating point in c?
Explain how do you sort filenames in a directory?
what is the significance of static storage class specifier?