how to find out the reverse number of a digit if it is
input through the keyboard?

Answer Posted / prince rafi

void main()
{
int num,m,temp=0;
clrscr();
printf("enter the value of num);
do
{
m=m%10;
temp=(temp*10)+m;
num=num/10;
}
while(num>0);
printf("%d",sum);
}
getch();
}

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a file other than a .h file be included with #include?

683


What are different types of operators?

594


What is the difference between struct and typedef struct in c?

653


What is dynamic variable in c?

563


Can i use “int” data type to store the value 32768? Why?

755






How do you declare a variable that will hold string values?

669


On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area

663


Explain how do you list a file’s date and time?

615


What is a void pointer in c?

606


Can you think of a logic behind the game minesweeper.

2007


What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?

934


What are pointers? Why are they used?

627


Explain how do you search data in a data file using random access method?

694


What do you know about the use of bit field?

610


How can I write a function that takes a format string and a variable number of arguments?

602