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


Please Help Members By Posting Answers For Below Questions

How can a string be converted to a number?

631


Write a program with dynamically allocation of variable.

708


Linked lists -- can you tell me how to check whether a linked list is circular?

739


List out few of the applications that make use of Multilinked Structures?

1482


What is the difference between union and anonymous union?

927






What is the significance of an algorithm to C programming?

678


What are the 5 types of inheritance in c ++?

675


What is an auto keyword in c?

752


Write a program which returns the first non repetitive character in the string?

690


Can you subtract pointers from each other? Why would you?

644


Can we declare a function inside a function in c?

690


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

1503


What is a floating point in c?

698


Explain how do you sort filenames in a directory?

710


what is the significance of static storage class specifier?

1774