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 how can I remove the trailing spaces from a string?
What is structure padding in c?
What is quick sort in c?
writ a program to compare using strcmp VIVA and viva with its output.
What is memcpy() function?
Define and explain about ! Operator?
What is c language used for?
Explain how can I make sure that my program is the only one accessing a file?
Explain how do you search data in a data file using random access method?
Explain how can I convert a number to a string?
What are # preprocessor operator in c?
What are the storage classes in C?
What are the differences between Structures and Arrays?
The number of bytes of storage occupied by short, int and long are a) 2, 2 and 4 b) 2, 4 and 4 c) 4, 4 and 4 d) none
Differentiate between Macro and ordinary definition.