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 the use of keyword 'register' with respect to variables.
How is null defined in c?
State two uses of pointers in C?
Explain the difference between structs and unions in c?
Why does not c have an exponentiation operator?
What is indirection in c?
What is the difference between malloc() and calloc() function in c language?
What is the difference between strcpy() and memcpy() function in c programming?
What is an endless loop?
write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare. You will then tabulate this information in another file.
What is c programming structure?
Iam a B.Tech graduate and completed my engineering in 2009, from 2005 to 2009 and after that i had done nothing.Now i want to do job and get into BPO field . Friends give me suggestions as what to say in interview... if they ask me that what would you had done ... these many years without doing job ??????? pls urgent
Between macros and functions,which is better to use and why?
What is class and object in c?
why programs in c are running with out #include